{"version":3,"file":"uniqBy.fcff6105.js","sources":["../../../../../../src/lib/utils/uniqBy.ts"],"sourcesContent":["export function uniqBy(array: T[], key: keyof T) {\n return array.filter((a, i, arr) => {\n return !arr.slice(0, i).some((b) => {\n if (a[key]?.call) {\n return a[key]() === b[key]()\n }\n return a[key] === b[key]\n })\n })\n}\n"],"names":["uniqBy","array","key","a","i","arr","b","_a"],"mappings":"mVAAgB,SAAAA,EAAyBC,EAAYC,EAAc,CACjE,OAAOD,EAAM,OAAO,CAACE,EAAGC,EAAGC,IAClB,CAACA,EAAI,MAAM,EAAGD,CAAC,EAAE,KAAME,GAAM,OAC9B,OAAAC,EAAAJ,EAAED,CAAG,IAAL,MAAAK,EAAQ,KACHJ,EAAED,CAAG,EAAA,IAAQI,EAAEJ,CAAG,EAAE,EAEtBC,EAAED,CAAG,IAAMI,EAAEJ,CAAG,CAAA,CACtB,CACJ,CACH"}