{"version":3,"sources":["array.ts"],"sourcesContent":["import { Pointer } from \"../../runtime/pointers.ts\";\nimport { filter, map } from \"../../functions.ts\";\n\nexport class ReactiveArrayMethods<T=unknown> {\n\n\tconstructor(private pointer: Pointer) {}\n\n\tmap<U>(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): U[] {\n\t\treturn map(this.pointer.val, thisArg ? callbackfn.bind(thisArg) : callbackfn as any)\n\t}\n\n\tfilter<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): S[] {\n\t\treturn filter(this.pointer.val, thisArg ? predicate.bind(thisArg) : predicate as any)\n\t}\n}"],"names":["filter","map","ReactiveArrayMethods","constructor","pointer","callbackfn","thisArg","val","bind","predicate"],"mappings":"AACA,SAASA,MAAM,EAAEC,GAAG,QAAQ,qBAAqB;AAEjD,OAAO,MAAMC;;IAEZC,YAAY,AAAQC,OAAgB,CAAE;aAAlBA,UAAAA;IAAmB;IAEvCH,IAAOI,UAAsD,EAAEC,OAAa,EAAO;QAClF,OAAOL,IAAI,IAAI,CAACG,OAAO,CAACG,GAAG,EAAED,UAAUD,WAAWG,IAAI,CAACF,WAAWD;IACnE;IAEAL,OAAoBS,SAA8D,EAAEH,OAAa,EAAO;QACvG,OAAON,OAAO,IAAI,CAACI,OAAO,CAACG,GAAG,EAAED,UAAUG,UAAUD,IAAI,CAACF,WAAWG;IACrE;AACD","sourceRoot":"/lib/datex-core-js-legacy-0.3.15/types/reactive-methods/","file":"array.ts"}