Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IOptions

The options for the slice function.

Hierarchy

  • IOptions

Index

Properties

Properties

Optional start

start: undefined | number

The starting index of the slice, inclusive.

Negative values are taken as an offset from the end of the array.

The default is 0 if step > 0 else n - 1.

Optional step

step: undefined | number

The step value for the slice.

This must not be 0.

The default is 1.

Optional stop

stop: undefined | number

The stopping index of the slice, exclusive.

Negative values are taken as an offset from the end of the array.

The default is n if step > 0 else -n - 1.

Generated using TypeDoc