source: imaps-frontend/node_modules/call-bind-apply-helpers/index.js

main
Last change on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 411 bytes
Line 
1'use strict';
2
3var bind = require('function-bind');
4var $TypeError = require('es-errors/type');
5
6var $call = require('./functionCall');
7var $actualApply = require('./actualApply');
8
9/** @type {import('.')} */
10module.exports = function callBindBasic(args) {
11 if (args.length < 1 || typeof args[0] !== 'function') {
12 throw new $TypeError('a function is required');
13 }
14 return $actualApply(bind, $call, args);
15};
Note: See TracBrowser for help on using the repository browser.