Write .drop()

This commit is contained in:
marleyrae 2023-06-27 19:03:53 -07:00
parent 89e031f27e
commit a077736466

View file

@ -66,5 +66,9 @@ _.findKey = function (obj, cb) {
return undefined
}
/* ---------------------------------------------------------------- drop ---- */
_.drop = (arr, num = 1) => arr.slice(num)
// Do not write or modify code below this line.
module.exports = _