Lekcja 08 projekt auta cz1

This commit is contained in:
aplikacje committed 2026-10-22 10:52:16 +02:00
1 parent 8fc98ebf9d
commit d60f8a91a7
1543 files changed
+255781

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
'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);
};