✏️ 正在编辑: index.js
路径:
/opt/alt/alt-nodejs14/root/usr/lib/node_modules/npm/node_modules.bundled/concat-map/index.js
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
module.exports = function (xs, fn) { var res = []; for (var i = 0; i < xs.length; i++) { var x = fn(xs[i], i); if (isArray(x)) res.push.apply(res, x); else res.push(x); } return res; }; var isArray = Array.isArray || function (xs) { return Object.prototype.toString.call(xs) === '[object Array]'; };
💾 保存文件
← 返回文件管理器