Sha256: eaee3d6f47fe6cb1c7764455b083d3c3757ce62ae8ab2725c9e7bac62c946bf7

Contents?: true

Size: 833 Bytes

Versions: 49

Compression:

Stored size: 833 Bytes

Contents

{"version":3,"file":"toArray.js","sourceRoot":"","sources":["../../src/operators/toArray.ts"],"names":[],"mappings":";AAAA,uBAAuB,UAAU,CAAC,CAAA;AAGlC,wBAA2B,GAAQ,EAAE,IAAO,EAAE,KAAa;IACzD,EAAE,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC;QAChB,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC;IAChB,CAAC;IACD,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACf,MAAM,CAAC,GAAG,CAAC;AACb,CAAC;AAED;IACE,MAAM,CAAC,eAAM,CAAC,cAAc,EAAE,EAAE,CAA6B,CAAC;AAChE,CAAC;AAFe,eAAO,UAEtB,CAAA","sourcesContent":["import { reduce } from './reduce';\nimport { OperatorFunction } from '../interfaces';\n\nfunction toArrayReducer<T>(arr: T[], item: T, index: number) {\n  if (index === 0) {\n    return [item];\n  }\n  arr.push(item);\n  return arr;\n}\n\nexport function toArray<T>(): OperatorFunction<T, T[]> {\n  return reduce(toArrayReducer, []) as OperatorFunction<T, T[]>;\n}\n"]}

Version data entries

49 entries across 49 versions & 4 rubygems

Version Path
ilog-0.4.1 node_modules/rxjs/operators/toArray.js.map
ilog-0.4.0 node_modules/rxjs/operators/toArray.js.map
ilog-0.3.3 node_modules/rxjs/operators/toArray.js.map
govuk_publishing_components-18.0.0 node_modules/rxjs/operators/toArray.js.map
govuk_publishing_components-17.21.0 node_modules/rxjs/operators/toArray.js.map
govuk_publishing_components-17.20.0 node_modules/rxjs/operators/toArray.js.map
govuk_publishing_components-17.19.1 node_modules/rxjs/operators/toArray.js.map
govuk_publishing_components-17.19.0 node_modules/rxjs/operators/toArray.js.map
govuk_publishing_components-17.18.0 node_modules/rxjs/operators/toArray.js.map
govuk_publishing_components-17.17.0 node_modules/rxjs/operators/toArray.js.map
govuk_publishing_components-17.16.0 node_modules/rxjs/operators/toArray.js.map
govuk_publishing_components-17.15.0 node_modules/rxjs/operators/toArray.js.map
govuk_publishing_components-17.14.0 node_modules/rxjs/operators/toArray.js.map
govuk_publishing_components-17.13.0 node_modules/rxjs/operators/toArray.js.map
govuk_publishing_components-17.12.2 node_modules/rxjs/operators/toArray.js.map
govuk_publishing_components-17.12.1 node_modules/rxjs/operators/toArray.js.map
govuk_publishing_components-17.12.0 node_modules/rxjs/operators/toArray.js.map
govuk_publishing_components-17.11.0 node_modules/rxjs/operators/toArray.js.map
govuk_publishing_components-17.10.0 node_modules/rxjs/operators/toArray.js.map
govuk_publishing_components-17.9.0 node_modules/rxjs/operators/toArray.js.map