Vinyl
    Preparing search index...

    Function slice

    • Returns a subsection of an array-like. For both start and end, a negative index can be used to indicate an offset from the end of the array. For example, -2 refers to the second to last element of the array.

      Type Parameters

      • T

      Parameters

      • arrayLike: ArrayLike<T>

        An ArrayLike to copy.

      • Optionalstart: number

        The beginning index of the array-like. Default: 0

      • Optionalend: number

        The end index of the specified portion of the array-like (exclusive). Default: length

      Returns T[]