Version 1
[yaffs-website] / node_modules / underscore.string / splice.js
diff --git a/node_modules/underscore.string/splice.js b/node_modules/underscore.string/splice.js
new file mode 100644 (file)
index 0000000..34c0410
--- /dev/null
@@ -0,0 +1,7 @@
+var chars = require('./chars');
+
+module.exports = function splice(str, i, howmany, substr) {
+  var arr = chars(str);
+  arr.splice(~~i, ~~howmany, substr);
+  return arr.join('');
+};