File manager - Edit - /usr/local/lib/node_modules/bower/lib/node_modules/bower-config/node_modules/mout/array/zip.js
Back
var max = require('./max'); var map = require('./map'); function getLength(arr) { return arr == null ? 0 : arr.length; } /** * Merges together the values of each of the arrays with the values at the * corresponding position. */ function zip(arr){ var len = arr ? max(map(arguments, getLength)) : 0, results = [], i = -1; while (++i < len) { // jshint loopfunc: true results.push(map(arguments, function(item) { return item == null ? undefined : item[i]; })); } return results; } module.exports = zip;
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings