File manager - Edit - /usr/local/lib/node_modules/bower/lib/node_modules/mout/src/string/insert.js
Back
define(['../math/clamp', '../lang/toString'], function (clamp, toString) { /** * Inserts a string at a given index. */ function insert(string, index, partial){ string = toString(string); if (index < 0) { index = string.length + index; } index = clamp(index, 0, string.length); return string.substr(0, index) + partial + string.substr(index); } return insert; });
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings