anorgatarrak-wordpress-theme/node_modules/underscore.string/splice.js

8 lines
181 B
JavaScript
Raw Normal View History

var chars = require('./chars');
module.exports = function splice(str, i, howmany, substr) {
var arr = chars(str);
arr.splice(~~i, ~~howmany, substr);
return arr.join('');
};