jishaku
Version:
PythonのJishakuをパクった
12 lines • 372 B
JavaScript
;
var _a;
Object.defineProperty(exports, "__esModule", { value: true });
if (!((_a = String.prototype) === null || _a === void 0 ? void 0 : _a.chunk)) {
String.prototype.chunk = function (num) {
const m = this.match(new RegExp(`.{${num}}`, "g"));
if (!m)
return [];
return m;
};
}
//# sourceMappingURL=extends.js.map