utiller 1.0.176 → 1.0.177
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 +12 -0
- package/package.json +1 -1
- package/template/sample.package.json +1 -1
package/lib/utiller/index.js
CHANGED
|
@@ -2583,6 +2583,18 @@ var Utiller = /*#__PURE__*/function () {
|
|
|
2583
2583
|
|
|
2584
2584
|
return items;
|
|
2585
2585
|
}
|
|
2586
|
+
}, {
|
|
2587
|
+
key: "getHeadStringSplitBy",
|
|
2588
|
+
value: function getHeadStringSplitBy(string) {
|
|
2589
|
+
var sign = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.getSeparatorOfUnique();
|
|
2590
|
+
return _lodash["default"].split(string, sign).shift();
|
|
2591
|
+
}
|
|
2592
|
+
}, {
|
|
2593
|
+
key: "getTailStringSplitBy",
|
|
2594
|
+
value: function getTailStringSplitBy(string) {
|
|
2595
|
+
var sign = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.getSeparatorOfUnique();
|
|
2596
|
+
return _lodash["default"].split(string, sign).pop();
|
|
2597
|
+
}
|
|
2586
2598
|
}]);
|
|
2587
2599
|
return Utiller;
|
|
2588
2600
|
}();
|
package/package.json
CHANGED