Skip to content
This repository was archived by the owner on Jul 20, 2021. It is now read-only.

Latest commit

 

History

History
21 lines (14 loc) · 412 Bytes

File metadata and controls

21 lines (14 loc) · 412 Bytes

Offset

Take an input and offset it by a positive or negative value.

Configuration

interface IOffsetConfig {
  offset?: number | string;
}

Example

const offsetMapperDefault = Mappers.offset(); // Offset: offset:0

const offsetMapperPositive = Mappers.offset({ offset: 42 }); // Offset: offset:42

const offsetMapperNegative = Mappers.offset({ offset: -42 }); // Offset: offset:-42