6 lines
125 B
JavaScript
6 lines
125 B
JavaScript
var splice = require('./splice');
|
|
|
|
module.exports = function insert(str, i, substr) {
|
|
return splice(str, i, 0, substr);
|
|
};
|