blob: 3f7d1e93a7e6e0a2a07179a5194e68473b45c6bf [file] [log] [blame]
var slice =
/*#__PURE__*/
require("../slice");
function dropLastWhile(pred, xs) {
var idx = xs.length - 1;
while (idx >= 0 && pred(xs[idx])) {
idx -= 1;
}
return slice(0, idx + 1, xs);
}
module.exports = dropLastWhile;