/
lostSun
/
project-client-server-apps
Обзор
Документация
Войти
/
lostSun
/
project-client-server-apps
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
node_modules/underscore/cjs/_bindCb4.js
13 строк
479 B
1lostsun
initial commit
05 май 2025, 11:35
05 май 2025, 11:35
fe8f535
Код
Авторство
О чём код?
// In Firefox, `Function.prototype.call` is faster than // `Function.prototype.apply`. In the optimized variant of // `bindCb` below, we exploit the fact that no Underscore // function passes more than four arguments to a callback. // **NOT general enough for use outside of Underscore.** function bindCb4(func, context) { if (context === void 0) return func; return function(a1, a2, a3, a4) { return func.call(context, a1, a2, a3, a4); }; } module.exports = bindCb4;