test-action-debian-package/node_modules/ramda/es/internal/_dropLast.js

4 lines
128 B
JavaScript
Raw Normal View History

2020-03-26 14:37:35 +00:00
import take from "../take.js";
export default function dropLast(n, xs) {
return take(n < xs.length ? xs.length - n : 0, xs);
}