UNPKG

@reactivex/ix-esnext-esm

Version:

The Interactive Extensions for JavaScript

1 lines 1.12 kB
{"version":3,"sources":["add/iterable-operators/skipwhile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAa/D,MAAM,UAAU,cAAc,CAE5B,SAA+C;IAE/C,OAAO,SAAS,CAAI,SAAS,CAAC,CAAC,IAAI,CAAC,CAAC;AACvC,CAAC;AAED,SAAS,CAAC,SAAS,CAAC,SAAS,GAAG,cAAc,CAAC","file":"skipwhile.js","sourcesContent":["import { IterableX } from '../../iterable/iterablex';\nimport { skipWhile } from '../../iterable/operators/skipwhile';\n\n/**\n * @ignore\n */\nexport function skipWhileProto<T, S extends T>(\n this: IterableX<T>,\n predicate: (value: T, index: number) => value is S\n): IterableX<S>;\nexport function skipWhileProto<T>(\n this: IterableX<T>,\n predicate: (value: T, index: number) => boolean\n): IterableX<T>;\nexport function skipWhileProto<T>(\n this: IterableX<T>,\n predicate: (value: T, index: number) => boolean\n): IterableX<T> {\n return skipWhile<T>(predicate)(this);\n}\n\nIterableX.prototype.skipWhile = skipWhileProto;\n\ndeclare module '../../iterable/iterablex' {\n interface IterableX<T> {\n skipWhile: typeof skipWhileProto;\n }\n}\n"]}