utiller 1.0.49 → 1.0.50

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.
@@ -1695,6 +1695,30 @@ var Utiller = /*#__PURE__*/function () {
1695
1695
  return minor[key] === undefined;
1696
1696
  });
1697
1697
  }
1698
+ /**
1699
+ *
1700
+ const obj1 = {b:4,c:2};
1701
+ const obj2 = {b:4,c:3};
1702
+ const obj3 = {a:1,b:4,c:3};
1703
+ console.log(util.isContainAndEqual(obj1,obj3)) false
1704
+ console.log(util.isContainAndEqual(obj1,obj3)) true
1705
+ targetObject 是數量比較小那個
1706
+ */
1707
+
1708
+ }, {
1709
+ key: "isContainAndEqual",
1710
+ value: function isContainAndEqual(targetObject, mainObject) {
1711
+ var equal = true;
1712
+
1713
+ for (var key in targetObject) {
1714
+ if (mainObject[key] === undefined || mainObject[key] !== targetObject[key]) {
1715
+ equal = false;
1716
+ break;
1717
+ }
1718
+ }
1719
+
1720
+ return equal;
1721
+ }
1698
1722
  }]);
1699
1723
  return Utiller;
1700
1724
  }();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "utiller",
3
- "version": "1.0.49",
3
+ "version": "1.0.50",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -11,7 +11,7 @@
11
11
  "license": "ISC",
12
12
  "dependencies": {
13
13
  "configerer": "^1.0.10",
14
- "utiller": "^1.0.48",
14
+ "utiller": "^1.0.49",
15
15
  "linepayer": "^1.0.4",
16
16
  "databazer": "^1.0.7",
17
17
  "lodash": "^4.17.20",