webdetector/.cache/db/6e257e7ffb148a0682d19faea7a5c6.json
2018-12-21 13:36:28 +01:00

1 line
8.1 KiB
JSON

{"id":"../node_modules/rxjs/_esm5/internal/operators/findIndex.js","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/findIndex.js.map","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/src/internal/operators/findIndex.ts","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/package.json","includedInParent":true,"mtime":1545395695572},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/package.json","includedInParent":true,"mtime":1545395355370},{"name":"../operators/find","loc":{"line":2,"column":34},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/findIndex.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/find.js"}],"generated":{"js":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.findIndex = findIndex;\n\nvar _find = require(\"../operators/find\");\n\n/** PURE_IMPORTS_START _operators_find PURE_IMPORTS_END */\nfunction findIndex(predicate, thisArg) {\n return function (source) {\n return source.lift(new _find.FindValueOperator(predicate, source, true, thisArg));\n };\n}","map":{"mappings":[{"source":"../../../src/internal/operators/findIndex.ts","name":null,"original":{"line":41,"column":0},"generated":{"line":8,"column":0}},{"source":"../../../src/internal/operators/findIndex.ts","name":null,"original":{"line":2,"column":0},"generated":{"line":10,"column":0}},{"source":"../../../src/internal/operators/findIndex.ts","name":null,"original":{"line":43,"column":2},"generated":{"line":11,"column":0}},{"source":"../../../src/internal/operators/findIndex.ts","name":null,"original":{"line":43,"column":9},"generated":{"line":11,"column":9}},{"source":"../../../src/internal/operators/findIndex.ts","name":null,"original":{"line":43,"column":2},"generated":{"line":11,"column":18}},{"source":"../../../src/internal/operators/findIndex.ts","name":null,"original":{"line":43,"column":10},"generated":{"line":11,"column":19}},{"source":"../../../src/internal/operators/findIndex.ts","name":null,"original":{"line":43,"column":2},"generated":{"line":11,"column":28}},{"source":"../../../src/internal/operators/findIndex.ts","name":null,"original":{"line":43,"column":36},"generated":{"line":11,"column":30}},{"source":"../../../src/internal/operators/findIndex.ts","name":null,"original":{"line":43,"column":2},"generated":{"line":11,"column":37}},{"source":"../../../src/internal/operators/findIndex.ts","name":null,"original":{"line":43,"column":43},"generated":{"line":11,"column":39}},{"source":"../../../src/internal/operators/findIndex.ts","name":null,"original":{"line":44,"column":1},"generated":{"line":12,"column":0}},{"source":"../../../src/internal/operators/findIndex.ts","name":null,"original":{"line":44,"column":1},"generated":{"line":12,"column":9}},{"source":"../../../src/internal/operators/findIndex.ts","name":null,"original":{"line":44,"column":1},"generated":{"line":12,"column":19}},{"source":"../../../src/internal/operators/findIndex.ts","name":null,"original":{"line":44,"column":1},"generated":{"line":12,"column":25}},{"source":"../../../src/internal/operators/findIndex.ts","name":null,"original":{"line":44,"column":1},"generated":{"line":12,"column":27}},{"source":"../../../src/internal/operators/findIndex.ts","name":null,"original":{"line":44,"column":1},"generated":{"line":13,"column":0}},{"source":"../../../src/internal/operators/findIndex.ts","name":null,"original":{"line":44,"column":1},"generated":{"line":13,"column":11}},{"source":"../../../src/internal/operators/findIndex.ts","name":null,"original":{"line":44,"column":1},"generated":{"line":13,"column":17}},{"source":"../../../src/internal/operators/findIndex.ts","name":null,"original":{"line":44,"column":1},"generated":{"line":13,"column":18}},{"source":"../../../src/internal/operators/findIndex.ts","name":null,"original":{"line":44,"column":1},"generated":{"line":13,"column":22}},{"source":"../../../src/internal/operators/findIndex.ts","name":null,"original":{"line":44,"column":1},"generated":{"line":13,"column":23}},{"source":"../../../src/internal/operators/findIndex.ts","name":null,"original":{"line":44,"column":1},"generated":{"line":13,"column":27}},{"source":"../../../src/internal/operators/findIndex.ts","name":null,"original":{"line":44,"column":1},"generated":{"line":13,"column":50}},{"source":"../../../src/internal/operators/findIndex.ts","name":null,"original":{"line":44,"column":1},"generated":{"line":13,"column":51}},{"source":"../../../src/internal/operators/findIndex.ts","name":null,"original":{"line":44,"column":1},"generated":{"line":13,"column":60}},{"source":"../../../src/internal/operators/findIndex.ts","name":null,"original":{"line":44,"column":1},"generated":{"line":13,"column":62}},{"source":"../../../src/internal/operators/findIndex.ts","name":null,"original":{"line":44,"column":1},"generated":{"line":13,"column":68}},{"source":"../../../src/internal/operators/findIndex.ts","name":null,"original":{"line":44,"column":1},"generated":{"line":13,"column":70}},{"source":"../../../src/internal/operators/findIndex.ts","name":null,"original":{"line":44,"column":1},"generated":{"line":13,"column":74}},{"source":"../../../src/internal/operators/findIndex.ts","name":null,"original":{"line":44,"column":1},"generated":{"line":13,"column":76}},{"source":"../../../src/internal/operators/findIndex.ts","name":null,"original":{"line":44,"column":1},"generated":{"line":13,"column":83}},{"source":"../../../src/internal/operators/findIndex.ts","name":null,"original":{"line":44,"column":1},"generated":{"line":13,"column":84}},{"source":"../../../src/internal/operators/findIndex.ts","name":null,"original":{"line":44,"column":1},"generated":{"line":13,"column":85}},{"source":"../../../src/internal/operators/findIndex.ts","name":null,"original":{"line":44,"column":1},"generated":{"line":14,"column":0}},{"source":"../../../src/internal/operators/findIndex.ts","name":null,"original":{"line":44,"column":1},"generated":{"line":14,"column":3}}],"sources":{"../../../src/internal/operators/findIndex.ts":"import { Observable } from '../Observable';\nimport { FindValueOperator } from '../operators/find';\nimport { OperatorFunction } from '../types';\n/**\n * Emits only the index of the first value emitted by the source Observable that\n * meets some condition.\n *\n * <span class=\"informal\">It's like {@link find}, but emits the index of the\n * found value, not the value itself.</span>\n *\n * ![](findIndex.png)\n *\n * `findIndex` searches for the first item in the source Observable that matches\n * the specified condition embodied by the `predicate`, and returns the\n * (zero-based) index of the first occurrence in the source. Unlike\n * {@link first}, the `predicate` is required in `findIndex`, and does not emit\n * an error if a valid value is not found.\n *\n * ## Example\n * Emit the index of first click that happens on a DIV element\n * ```javascript\n * const clicks = fromEvent(document, 'click');\n * const result = clicks.pipe(findIndex(ev => ev.target.tagName === 'DIV'));\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link filter}\n * @see {@link find}\n * @see {@link first}\n * @see {@link take}\n *\n * @param {function(value: T, index: number, source: Observable<T>): boolean} predicate\n * A function called with each item to test for condition matching.\n * @param {any} [thisArg] An optional argument to determine the value of `this`\n * in the `predicate` function.\n * @return {Observable} An Observable of the index of the first item that\n * matches the condition.\n * @method find\n * @owner Observable\n */\nexport function findIndex<T>(predicate: (value: T, index: number, source: Observable<T>) => boolean,\n thisArg?: any): OperatorFunction<T, number> {\n return (source: Observable<T>) => source.lift(new FindValueOperator(predicate, source, true, thisArg)) as Observable<any>;\n}\n"},"lineCount":null}},"hash":"bd98ba539af0aa37f94dabb6174e081f","cacheData":{"env":{}}}