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.
@@ -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