Initial commit

This commit is contained in:
Brian McGonagill 2026-03-18 09:02:21 -05:00
commit b3a51a4115
10336 changed files with 2381973 additions and 0 deletions

1
node_modules/remeda/dist/dropWhile.cjs.map generated vendored Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"dropWhile.cjs","names":["purry"],"sources":["../src/dropWhile.ts"],"sourcesContent":["import type { IterableContainer } from \"./internal/types/IterableContainer\";\nimport { purry } from \"./purry\";\n\n/**\n * Removes elements from the beginning of the array until the predicate returns false.\n *\n * The predicate is applied to each element in the array, until the predicate returns false. The returned array includes the rest of the elements, starting with the element that produced false for the predicate.\n *\n * @param data - The array.\n * @param predicate - The predicate.\n * @signature\n * R.dropWhile(data, predicate)\n * @example\n * R.dropWhile([1, 2, 10, 3, 4], x => x < 10) // => [10, 3, 4]\n * @dataFirst\n * @category Array\n */\nexport function dropWhile<T extends IterableContainer>(\n data: T,\n predicate: (item: T[number], index: number, data: T) => boolean,\n): T[number][];\n\n/**\n * Removes elements from the beginning of the array until the predicate returns false.\n *\n * The predicate is applied to each element in the array, until the predicate returns false. The returned array includes the rest of the elements, starting with the element that produced false for the predicate.\n *\n * @param predicate - The predicate.\n * @signature\n * R.dropWhile(predicate)(data)\n * @example\n * R.pipe([1, 2, 10, 3, 4], R.dropWhile(x => x < 10)) // => [10, 3, 4]\n * @dataLast\n * @category Array\n */\nexport function dropWhile<T extends IterableContainer>(\n predicate: (item: T[number], index: number, data: T) => boolean,\n): (data: T) => T[number][];\n\nexport function dropWhile(...args: readonly unknown[]): unknown {\n return purry(dropWhileImplementation, args);\n}\n\nfunction dropWhileImplementation<T extends IterableContainer>(\n data: T,\n predicate: (item: T[number], index: number, data: T) => boolean,\n): T[number][] {\n for (const [index, item] of data.entries()) {\n if (!predicate(item, index, data)) {\n return data.slice(index);\n }\n }\n return [];\n}\n"],"mappings":"wCAuCA,SAAgB,EAAU,GAAG,EAAmC,CAC9D,OAAOA,EAAAA,EAAM,EAAyB,EAAK,CAG7C,SAAS,EACP,EACA,EACa,CACb,IAAK,GAAM,CAAC,EAAO,KAAS,EAAK,SAAS,CACxC,GAAI,CAAC,EAAU,EAAM,EAAO,EAAK,CAC/B,OAAO,EAAK,MAAM,EAAM,CAG5B,MAAO,EAAE"}