Write .drop()
This commit is contained in:
parent
89e031f27e
commit
a077736466
1 changed files with 4 additions and 0 deletions
|
@ -66,5 +66,9 @@ _.findKey = function (obj, cb) {
|
||||||
return undefined
|
return undefined
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------- drop ---- */
|
||||||
|
|
||||||
|
_.drop = (arr, num = 1) => arr.slice(num)
|
||||||
|
|
||||||
// Do not write or modify code below this line.
|
// Do not write or modify code below this line.
|
||||||
module.exports = _
|
module.exports = _
|
||||||
|
|
Loading…
Reference in a new issue