芝麻web文件管理V1.00
编辑当前文件:/home/rejoandoctor/www/node_modules/collect.js/src/methods/random.js
'use strict'; const values = require('../helpers/values'); module.exports = function random(length = null) { const items = values(this.items); const collection = new this.constructor(items).shuffle(); // If not a length was specified if (length !== parseInt(length, 10)) { return collection.first(); } return collection.take(length); };