separate.js 208 B

123456789101112
  1. "use strict";
  2. var forEach = Array.prototype.forEach;
  3. module.exports = function (sep) {
  4. var result = [];
  5. forEach.call(this, function (val) {
  6. result.push(val, sep);
  7. });
  8. result.pop();
  9. return result;
  10. };