Sha256: 3b1f0d12b5d78c2a3cbca1a1fc225aa8ca7856e47daa0b5c9df2f5273f7e12f8

Contents?: true

Size: 1.55 KB

Versions: 49

Compression:

Stored size: 1.55 KB

Contents

{"version":3,"file":"FastMap.js","sourceRoot":"","sources":["../../src/util/FastMap.ts"],"names":[],"mappings":";AAAA;IAAA;QACU,WAAM,GAAW,EAAE,CAAC;IA4B9B,CAAC;IA1BC,wBAAM,GAAN,UAAO,GAAW;QAChB,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;QACxB,MAAM,CAAC,IAAI,CAAC;IACd,CAAC;IAED,qBAAG,GAAH,UAAI,GAAW,EAAE,KAAU;QACzB,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;QACzB,MAAM,CAAC,IAAI,CAAC;IACd,CAAC;IAED,qBAAG,GAAH,UAAI,GAAW;QACb,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IAC1B,CAAC;IAED,yBAAO,GAAP,UAAQ,EAAkC,EAAE,OAAa;QACvD,IAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAC3B,GAAG,CAAC,CAAC,IAAI,GAAG,IAAI,MAAM,CAAC,CAAC,CAAC;YACvB,EAAE,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC;gBACvD,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC;YACrC,CAAC;QACH,CAAC;IACH,CAAC;IAED,uBAAK,GAAL;QACE,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;IACnB,CAAC;IACH,cAAC;AAAD,CAAC,AA7BD,IA6BC;AA7BY,eAAO,UA6BnB,CAAA","sourcesContent":["export class FastMap {\n  private values: Object = {};\n\n  delete(key: string): boolean {\n    this.values[key] = null;\n    return true;\n  }\n\n  set(key: string, value: any): FastMap {\n    this.values[key] = value;\n    return this;\n  }\n\n  get(key: string): any {\n    return this.values[key];\n  }\n\n  forEach(cb: (value: any, key: any) => void, thisArg?: any): void {\n    const values = this.values;\n    for (let key in values) {\n      if (values.hasOwnProperty(key) && values[key] !== null) {\n        cb.call(thisArg, values[key], key);\n      }\n    }\n  }\n\n  clear(): void {\n    this.values = {};\n  }\n}"]}

Version data entries

49 entries across 49 versions & 4 rubygems

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