UNPKG

815 BSource Map (JSON)View Raw
1{"version":3,"sources":["iterable/some.ts"],"names":[],"mappings":"AAQA,MAAM,UAAU,IAAI,CAClB,MAAmB,EACnB,QAA8C;IAE9C,IAAI,CAAC,GAAG,CAAC,CAAC;IACV,KAAK,MAAM,IAAI,IAAI,MAAM,EAAE;QACzB,IAAI,QAAQ,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE;YACvB,OAAO,IAAI,CAAC;SACb;KACF;IACD,OAAO,KAAK,CAAC;AACf,CAAC","file":"some.js","sourcesContent":["export function some<T, S extends T>(\n source: Iterable<T>,\n comparer: (value: T, index: number) => value is S\n): boolean;\nexport function some<T>(\n source: Iterable<T>,\n comparer: (value: T, index: number) => boolean\n): boolean;\nexport function some<T>(\n source: Iterable<T>,\n comparer: (value: T, index: number) => boolean\n): boolean {\n let i = 0;\n for (const item of source) {\n if (comparer(item, i++)) {\n return true;\n }\n }\n return false;\n}\n"]}
\No newline at end of file