@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/dist/pico-js.js +1 -1
- package/dist/pico-js.js.map +1 -1
- package/package.json +1 -1
- package/src/library/map.js +1 -1
- package/src/utility/array.js +11 -0
package/package.json
CHANGED
package/src/library/map.js
CHANGED
package/src/utility/array.js
CHANGED
@@ -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;
|