reports/frontend/node_modules/es-toolkit/dist/compat/array/drop.mjs
jtricerolph 1c411e402e Add settings page for managing forecasting API key and URL via UI
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-20 14:37:36 +00:00

12 lines
461 B
JavaScript

import { drop as drop$1 } from "../../array/drop.mjs";
import { toArray } from "../_internal/toArray.mjs";
import { isArrayLike } from "../predicate/isArrayLike.mjs";
import { toInteger } from "../util/toInteger.mjs";
//#region src/compat/array/drop.ts
function drop(array, itemsCount = 1, guard) {
if (!isArrayLike(array)) return [];
itemsCount = guard ? 1 : toInteger(itemsCount);
return drop$1(toArray(array), itemsCount);
}
//#endregion
export { drop };