/
asias
/
new
Обзор
Документация
Войти
/
asias
/
new
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
node_modules/underscore/cjs/_wrapArrayAccessor.js
14 строк
500 B
AnastasyaDemina
project
07 дек 2025, 23:03
07 дек 2025, 23:03
7c21e25
Код
Авторство
О чём код?
var _setup = require('./_setup.js'); var restArguments = require('./restArguments.js'); // Internal function to wrap `Array.prototype` methods that return a // new value so they can be directly invoked as standalone functions. // Works for `concat`, `slice` and `join`. function wrapArrayAccessor(name) { var method = _setup.ArrayProto[name]; return restArguments(function(array, args) { return array == null ? array : method.apply(array, args); }); } module.exports = wrapArrayAccessor;