hsu-utils 0.0.42 → 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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * hsu-utils v0.0.41
3
+ * hsu-utils v0.0.42
4
4
  *
5
5
  * some front-end utils
6
6
  *
@@ -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()].find((item) => Equal.ValEqual(item, key));
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).find(function (item) { return __1.Equal.ValEqual(item, key); });
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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hsu-utils",
3
- "version": "0.0.42",
3
+ "version": "0.0.43",
4
4
  "description": "some front-end utils",
5
5
  "repository": "git@github.com:VitaTsui/hsu-utils.git",
6
6
  "author": "VitaHsu <vitahsu7@gmail.com>",