Skips the given count of elements from the given array.

Type signature

(count: number) => (xs: any[]) => any[]

Examples

skip(2)([1, 2, 3, 4, 5]);
// ⇒ [3, 4, 5]
Try in REPL

Questions

  • How to skip the first few elements of an array?

TypeScript sourceJavaScript source