{"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\t// TODO\n\t// filter<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":["map","ReactiveArrayMethods","constructor","pointer","callbackfn","thisArg","val","bind"],"mappings":"AACA,SAAiBA,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;AAMD","sourceRoot":"/lib/datex-core-js-legacy-0.2.12/types/reactive-methods/","file":"array.ts"}