utiller 1.0.202 → 1.0.204
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/lib/utiller/index.js +14 -1
- package/package.json +1 -1
- package/template/sample.package.json +1 -1
package/lib/utiller/index.js
CHANGED
|
@@ -199,7 +199,7 @@ var Utiller = /*#__PURE__*/function () {
|
|
|
199
199
|
if (_lodash["default"].isString(value)) return value;
|
|
200
200
|
try {
|
|
201
201
|
var force = _lodash["default"].toString(value);
|
|
202
|
-
return
|
|
202
|
+
return this.isOrEquals(force, "", "undefined") ? defaultValue : force;
|
|
203
203
|
} catch (error) {
|
|
204
204
|
Util.appendError("448616845454 ".concat(error.message));
|
|
205
205
|
}
|
|
@@ -2201,6 +2201,19 @@ var Utiller = /*#__PURE__*/function () {
|
|
|
2201
2201
|
return slice;
|
|
2202
2202
|
}
|
|
2203
2203
|
|
|
2204
|
+
/**
|
|
2205
|
+
* const array1 = [1, 2, 3, 4, 5];
|
|
2206
|
+
* const array2 = [3, 4, 5, 6, 7];
|
|
2207
|
+
* Output: [1, 2]
|
|
2208
|
+
* */
|
|
2209
|
+
}, {
|
|
2210
|
+
key: "getArrayOfInteraction",
|
|
2211
|
+
value: function getArrayOfInteraction(one, two) {
|
|
2212
|
+
return one.filter(function (element) {
|
|
2213
|
+
return !two.includes(element);
|
|
2214
|
+
});
|
|
2215
|
+
}
|
|
2216
|
+
|
|
2204
2217
|
/**
|
|
2205
2218
|
*
|
|
2206
2219
|
* 把array裏面的'指定index' 移動到 '特定index'
|
package/package.json
CHANGED