- 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
16 lines
511 B
JavaScript
16 lines
511 B
JavaScript
'use strict';
|
|
|
|
var bind = require('function-bind');
|
|
var $TypeError = require('es-errors/type');
|
|
|
|
var $call = require('./functionCall');
|
|
var $actualApply = require('./actualApply');
|
|
|
|
/** @type {(args: [Function, thisArg?: unknown, ...args: unknown[]]) => Function} TODO FIXME, find a way to use import('.') */
|
|
module.exports = function callBindBasic(args) {
|
|
if (args.length < 1 || typeof args[0] !== 'function') {
|
|
throw new $TypeError('a function is required');
|
|
}
|
|
return $actualApply(bind, $call, args);
|
|
};
|