8 lines
181 B
JavaScript
8 lines
181 B
JavaScript
![]() |
var chars = require('./chars');
|
||
|
|
||
|
module.exports = function splice(str, i, howmany, substr) {
|
||
|
var arr = chars(str);
|
||
|
arr.splice(~~i, ~~howmany, substr);
|
||
|
return arr.join('');
|
||
|
};
|