Remove first n entries (default order).
Similar: take, drop.
function drop(x, n) // x: a map // n: number of entries [1]
const xlists = require('extra-lists'); var x = [['a', 'b', 'c', 'd', 'e'], [1, 2, 3, 4, 5]]; xlists.drop(x, 2).map(c => [...c]); // → [ [ 'c', 'd', 'e' ], [ 3, 4, 5 ] ] xlists.drop(x, 3).map(c => [...c]); // → [ [ 'd', 'e' ], [ 4, 5 ] ]
There was an error while loading. Please reload this page.