2
0

separate.js 208 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, i) { result.push(val, sep); });
  6. result.pop();
  7. return result;
  8. };