source:
node_modules/ramda/es/internal/_dropLast.js
Last change on this file was d24f17c, checked in by , 15 months ago | |
---|---|
|
|
File size: 128 bytes |
Rev | Line | |
---|---|---|
[d24f17c] | 1 | import take from "../take.js"; |
2 | export default function dropLast(n, xs) { | |
3 | return take(n < xs.length ? xs.length - n : 0, xs); | |
4 | } |
Note:
See TracBrowser
for help on using the repository browser.