Files
infocom-systems-design/node_modules/ramda/es/internal/_dropLast.js
2025-10-03 22:27:28 +03:00

4 lines
128 B
JavaScript
Executable File

import take from "../take.js";
export default function dropLast(n, xs) {
return take(n < xs.length ? xs.length - n : 0, xs);
}