Файловый менеджер - Редактировать - /home/clickysoft/public_html/securebeans.clickysoft.net/node_modules/collect.js/dist/methods/keyBy.js
Назад
'use strict'; var nestedValue = require('../helpers/nestedValue'); var _require = require('../helpers/is'), isFunction = _require.isFunction; module.exports = function keyBy(key) { var collection = {}; if (isFunction(key)) { this.items.forEach(function (item) { collection[key(item)] = item; }); } else { this.items.forEach(function (item) { var keyValue = nestedValue(item, key); collection[keyValue || ''] = item; }); } return new this.constructor(collection); };
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка