Skip to content

drop

Array.drop(array, amount)

Removes the first amount elements from array.

Example

ts
import { Array } from "@monstermann/array";

Array.drop([1, 2, 3, 4, 5], 2); // [3, 4, 5]
ts
import { Array } from "@monstermann/array";

pipe([1, 2, 3, 4, 5], Array.drop(2)); // [3, 4, 5]