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