test-action-debian-package/node_modules/ramda/es/internal/_dropLastWhile.js
Dawid Dziurla 9308795b8b
update
2020-03-26 15:37:35 +01:00

10 lines
201 B
JavaScript

import slice from "../slice.js";
export default function dropLastWhile(pred, xs) {
var idx = xs.length - 1;
while (idx >= 0 && pred(xs[idx])) {
idx -= 1;
}
return slice(0, idx + 1, xs);
}