ts-data-forge
    Preparing search index...
    drop: {
        <const Ar extends readonly unknown[], N extends ArgArr>(
            array: Ar,
            num: N,
        ): HasLengthConstraint<Ar> extends true
            ? readonly Ar[number][]
            : N extends StructuralPrefixLength ? Skip<N, Ar> : readonly Ar[number][];
        <N extends ArgArr>(
            num: N,
        ): <const Ar extends readonly unknown[]>(
            array: Ar,
        ) => HasLengthConstraint<Ar> extends true
            ? readonly Ar[number][]
            : N extends StructuralPrefixLength ? Skip<N, Ar> : readonly Ar[number][];
    } = skip

    Alias for skip.

    Type Declaration

      • <const Ar extends readonly unknown[], N extends ArgArr>(
            array: Ar,
            num: N,
        ): HasLengthConstraint<Ar> extends true
            ? readonly Ar[number][]
            : N extends StructuralPrefixLength ? Skip<N, Ar> : readonly Ar[number][]
      • Skips the first N elements of an array.

        Type Parameters

        • const Ar extends readonly unknown[]
        • N extends ArgArr

        Parameters

        • array: Ar
        • num: N

        Returns HasLengthConstraint<Ar> extends true
            ? readonly Ar[number][]
            : N extends StructuralPrefixLength ? Skip<N, Ar> : readonly Ar[number][]

        const values = ['a', 'b', 'c', 'd'] as const;

        const withoutFirstTwo = Arr.skip(values, 2);

        const withoutFirstThree = Arr.skip(3)(values);

        assert.deepStrictEqual(withoutFirstTwo, ['c', 'd']);

        assert.deepStrictEqual(withoutFirstThree, ['d']);
      • <N extends ArgArr>(
            num: N,
        ): <const Ar extends readonly unknown[]>(
            array: Ar,
        ) => HasLengthConstraint<Ar> extends true
            ? readonly Ar[number][]
            : N extends StructuralPrefixLength ? Skip<N, Ar> : readonly Ar[number][]
      • Skips the first N elements of an array.

        Type Parameters

        Parameters

        • num: N

        Returns <const Ar extends readonly unknown[]>(
            array: Ar,
        ) => HasLengthConstraint<Ar> extends true
            ? readonly Ar[number][]
            : N extends StructuralPrefixLength ? Skip<N, Ar> : readonly Ar[number][]

        const values = ['a', 'b', 'c', 'd'] as const;

        const withoutFirstTwo = Arr.skip(values, 2);

        const withoutFirstThree = Arr.skip(3)(values);

        assert.deepStrictEqual(withoutFirstTwo, ['c', 'd']);

        assert.deepStrictEqual(withoutFirstThree, ['d']);

    skip