- Complete React app with 7 developer tools - JSON Tool with visual structured editor - Serialize Tool with visual structured editor - URL, Base64, CSV/JSON, Beautifier, Diff tools - Responsive navigation with dropdown menu - Dark/light mode toggle - Mobile-responsive design with sticky header - All tools working with copy/paste functionality
18 lines
520 B
JavaScript
18 lines
520 B
JavaScript
define(function () {
|
|
|
|
// 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);
|
|
};
|
|
}
|
|
|
|
return bindCb4;
|
|
|
|
});
|