hsu-utils 0.0.41 → 0.0.43
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.
@@ -15,8 +15,8 @@ export default function array_is_includes(arr1, arr2) {
|
|
15
15
|
const smallArrMap = countMap(smallArr);
|
16
16
|
const largeArrMap = countMap(largeArr);
|
17
17
|
for (const [key, count] of smallArrMap.entries()) {
|
18
|
-
const largekey = [...largeArrMap.keys()].
|
19
|
-
if (!largekey || (largekey && largeArrMap.get(largekey) !== count)) {
|
18
|
+
const largekey = [...largeArrMap.keys()].filter((item) => Equal.ValEqual(item, key));
|
19
|
+
if (!largekey.length || (largekey.length && largeArrMap.get(largekey[0]) !== count)) {
|
20
20
|
return false;
|
21
21
|
}
|
22
22
|
}
|
@@ -54,8 +54,8 @@ function array_is_includes(arr1, arr2) {
|
|
54
54
|
var smallArrMap = countMap(smallArr);
|
55
55
|
var largeArrMap = countMap(largeArr);
|
56
56
|
var _loop_1 = function (key, count) {
|
57
|
-
var largekey = __spreadArray([], __read(largeArrMap.keys()), false).
|
58
|
-
if (!largekey || (largekey && largeArrMap.get(largekey) !== count)) {
|
57
|
+
var largekey = __spreadArray([], __read(largeArrMap.keys()), false).filter(function (item) { return __1.Equal.ValEqual(item, key); });
|
58
|
+
if (!largekey.length || (largekey.length && largeArrMap.get(largekey[0]) !== count)) {
|
59
59
|
return { value: false };
|
60
60
|
}
|
61
61
|
};
|