coer-elements 0.0.61 → 0.0.62
Sign up to get free protection for your applications and to get access to all the features.
- package/components/lib/coer-tab/coer-tab.component.d.ts +1 -0
- package/esm2022/components/lib/coer-modal/coer-modal.component.mjs +3 -3
- package/esm2022/components/lib/coer-tab/coer-tab.component.mjs +13 -1
- package/esm2022/tools/lib/tools.mjs +13 -1
- package/fesm2022/coer-elements-components.mjs +14 -2
- package/fesm2022/coer-elements-components.mjs.map +1 -1
- package/fesm2022/coer-elements-tools.mjs +12 -0
- package/fesm2022/coer-elements-tools.mjs.map +1 -1
- package/package.json +1 -1
- package/tools/lib/tools.d.ts +2 -0
@@ -225,6 +225,18 @@ const Tools = {
|
|
225
225
|
}, milliseconds)
|
226
226
|
}));
|
227
227
|
});
|
228
|
+
},
|
229
|
+
/** */
|
230
|
+
Except: (array, filter, ...properties) => {
|
231
|
+
const result = [];
|
232
|
+
for (const item of array) {
|
233
|
+
if (typeof item === 'object' && Tools.IsNotNull(properties) && properties.length > 0) {
|
234
|
+
if (!filter.some(x => x[properties[0]] === item[properties[0]])) {
|
235
|
+
result.push(item);
|
236
|
+
}
|
237
|
+
}
|
238
|
+
}
|
239
|
+
return [...result];
|
228
240
|
}
|
229
241
|
};
|
230
242
|
|