{"version":3,"sources":["../LuV.LUMAS.Services/scripts/helpers/genericHelper.ts"],"names":["_this","this","exports","containsValue","array","value","findValue","i","length","Id","indexOfValue"],"mappings":"wDAAA,IAAAA,EAAAC,sDAAaC,EAAAC,cAAgB,SAACC,EAAcC,GAE1C,OAAuB,MADJL,EAAKM,UAAUF,EAAOC,IAI9BH,EAAAI,UAAY,SAACF,EAAcC,GACtC,IAAK,IAAIE,EAAI,EAAGA,EAAIH,EAAMI,OAAQD,IAChC,GAAIH,EAAMG,GAAGE,IAAMJ,EAAMI,GACvB,OAAOL,EAAMG,GAGjB,OAAO,MAGIL,EAAAQ,aAAe,SAACN,EAAcC,GACzC,IAAK,IAAIE,EAAI,EAAGA,EAAIH,EAAMI,OAAQD,IAChC,GAAIH,EAAMG,GAAGE,IAAMJ,EAAMI,GACvB,OAAOF,EAGX,OAAQ","file":"genericHelper.js","sourcesContent":["export const containsValue = (array: any[], value: any) => {\r\n var valueInArray = this.findValue(array, value);\r\n return valueInArray != null;\r\n};\r\n\r\nexport const findValue = (array: any[], value: any) => {\r\n for (var i = 0; i < array.length; i++) {\r\n if (array[i].Id == value.Id) {\r\n return array[i];\r\n }\r\n }\r\n return null;\r\n};\r\n\r\nexport const indexOfValue = (array: any[], value: any) => {\r\n for (var i = 0; i < array.length; i++) {\r\n if (array[i].Id == value.Id) {\r\n return i;\r\n }\r\n }\r\n return -1;\r\n};\r\n"]}