Files
simple-mail-cleaner/backend/node_modules/remeda/dist/utilityEvaluators-CEX-n1-J.cjs.map
2026-01-23 01:33:35 +01:00

1 line
1.0 KiB
Plaintext

{"version":3,"file":"utilityEvaluators-CEX-n1-J.cjs","names":[],"sources":["../src/internal/utilityEvaluators.ts"],"sourcesContent":["import type { LazyResult } from \"./types/LazyResult\";\n\nconst EMPTY_PIPE = { done: true, hasNext: false } as const;\n\n/**\n * A singleton value for skipping an item in a lazy evaluator.\n */\nexport const SKIP_ITEM = { done: false, hasNext: false } as const;\n\n/**\n * A helper evaluator when we want to return an empty result. It memoizes both\n * the result and the evaluator itself to reduce memory usage.\n */\nexport const lazyEmptyEvaluator = <T>(): LazyResult<T> => EMPTY_PIPE;\n\n/**\n * A helper evaluator when we want to return a shallow clone of the input. It\n * memoizes both the evaluator itself to reduce memory usage.\n */\nexport const lazyIdentityEvaluator = <T>(value: T) =>\n ({\n hasNext: true,\n next: value,\n done: false,\n }) as const;\n"],"mappings":"AAEA,MAAM,EAAa,CAAE,KAAM,GAAM,QAAS,GAAO,CAKpC,EAAY,CAAE,KAAM,GAAO,QAAS,GAAO,CAM3C,MAA6C,EAM7C,EAA4B,IACtC,CACC,QAAS,GACT,KAAM,EACN,KAAM,GACP"}