@kizmann/pico-js 0.4.10 → 0.4.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kizmann/pico-js",
3
- "version": "0.4.10",
3
+ "version": "0.4.12",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "private": false,
@@ -1,4 +1,4 @@
1
- import { Obj, Arr, Any, Dom, UUID } from "../index.js";
1
+ import { Obj, Arr, Any, Dom, Event, UUID } from "../index.js";
2
2
 
3
3
  /**
4
4
  * @const {object} google
@@ -227,6 +227,17 @@ export class Arr
227
227
  return arr.splice(Num.int(key), count);
228
228
  }
229
229
 
230
+ static equal(arr1, arr2)
231
+ {
232
+ let complete = this.merge(arr1, arr2);
233
+
234
+ let rainbow = this.each(complete, (value) => {
235
+ return this.has(arr1, value) && this.has(arr2, value);
236
+ });
237
+
238
+ return ! this.has(rainbow, false);
239
+ }
240
+
230
241
  static includes(arr, val)
231
242
  {
232
243
  let result = false;