1 line
20 KiB
JSON
1 line
20 KiB
JSON
|
{"id":"../node_modules/rxjs/_esm5/internal/operators/pluck.js","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/pluck.js.map","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/src/internal/operators/pluck.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":"./map","loc":{"line":2,"column":20},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/pluck.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/map.js"}],"generated":{"js":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.pluck = pluck;\n\nvar _map = require(\"./map\");\n\n/** PURE_IMPORTS_START _map PURE_IMPORTS_END */\nfunction pluck() {\n var properties = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n properties[_i] = arguments[_i];\n }\n\n var length = properties.length;\n\n if (length === 0) {\n throw new Error('list of properties cannot be empty.');\n }\n\n return function (source) {\n return (0, _map.map)(plucker(properties, length))(source);\n };\n}\n\nfunction plucker(props, length) {\n var mapper = function (x) {\n var currentProp = x;\n\n for (var i = 0; i < length; i++) {\n var p = currentProp[props[i]];\n\n if (typeof p !== 'undefined') {\n currentProp = p;\n } else {\n return undefined;\n }\n }\n\n return currentProp;\n };\n\n return mapper;\n}","map":{"mappings":[{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":0},"generated":{"line":8,"column":0}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":2,"column":0},"generated":{"line":10,"column":0}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":28},"generated":{"line":11,"column":0}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":28},"generated":{"line":11,"column":9}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":28},"generated":{"line":11,"column":14}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":51},"generated":{"line":11,"column":17}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":28},"generated":{"line":12,"column":16}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":28},"generated":{"line":12,"column":19}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":28},"generated":{"line":14,"column":7}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":28},"generated":{"line":14,"column":11}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":28},"generated":{"line":14,"column":13}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":28},"generated":{"line":14,"column":16}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":28},"generated":{"line":14,"column":19}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":28},"generated":{"line":14,"column":21}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":28},"generated":{"line":14,"column":24}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":28},"generated":{"line":14,"column":33}},{"source":"../../../
|