/
lostSun
/
project-client-server-apps
Обзор
Документация
Войти
/
lostSun
/
project-client-server-apps
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
node_modules/underscore/amd/_wrapArrayAccessor.js
15 строк
502 B
1lostsun
initial commit
05 май 2025, 11:35
05 май 2025, 11:35
fe8f535
Код
Авторство
О чём код?
define(['./_setup', './restArguments'], function (_setup, restArguments) { // 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); }); } return wrapArrayAccessor; });