| Current Path : /usr/local/lib/node_modules/@google/gemini-cli/node_modules/es-toolkit/dist/array/ |
| Current File : //usr/local/lib/node_modules/@google/gemini-cli/node_modules/es-toolkit/dist/array/dropWhile.js |
'use strict';
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
function dropWhile(arr, canContinueDropping) {
const dropEndIndex = arr.findIndex((item, index, arr) => !canContinueDropping(item, index, arr));
if (dropEndIndex === -1) {
return [];
}
return arr.slice(dropEndIndex);
}
exports.dropWhile = dropWhile;