UNPKG

@kitmi/utils

Version:

A JavaScript utility library for both server and browser

20 lines (19 loc) 569 B
/* fatest split x 17,058,358 ops/sec ±0.17% (101 runs sampled) match x 1,684,639 ops/sec ±0.48% (96 runs sampled) replace x 3,797,425 ops/sec ±1.14% (94 runs sampled) countOfChar x 7,186,814 ops/sec ±0.49% (98 runs sampled) */ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { enumerable: true, get: function() { return _default; } }); const splitCount = (str, char)=>str.split(char).length - 1; const _default = splitCount; //# sourceMappingURL=countOfChar.js.map