{"version":3,"file":"drop.mjs","names":[],"sources":["../../src/array/drop.ts"],"sourcesContent":["/**\n * Drops the first n elements from an array\n * @param array The array to process\n * @param n The number of elements to drop\n * @returns A new array without the first n elements\n * @example\n * drop([1, 2, 3, 4, 5], 2); // [3, 4, 5]\n * drop([1, 2, 3], 5); // []\n */\nexport function drop<T>(array: T[], n: number = 1): T[] {\n  if (!Array.isArray(array)) {\n    return [];\n  }\n\n  if (n <= 0) {\n    return array;\n  }\n\n  return array.slice(n);\n}\n"],"mappings":";;;;;;;;;;AASA,SAAgB,KAAQ,OAAY,IAAY,GAAQ;CACtD,IAAI,CAAC,MAAM,QAAQ,KAAK,GACtB,OAAO,CAAC;CAGV,IAAI,KAAK,GACP,OAAO;CAGT,OAAO,MAAM,MAAM,CAAC;AACtB"}