Sha256: 5ececf06a9b7fd4b2ec7e8aed1b5493641230e596bc469ba4a1ca801d9987673
Contents?: true
Size: 270 Bytes
Versions: 19
Compression:
Stored size: 270 Bytes
Contents
'use strict'; var isArray = Array.isArray, forEach = Array.prototype.forEach , push = Array.prototype.push; module.exports = function flatten() { var r = []; forEach.call(this, function (x) { push.apply(r, isArray(x) ? flatten.call(x) : [x]); }); return r; };
Version data entries
19 entries across 10 versions & 3 rubygems