separate.js 205 B

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