main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
411 bytes
|
Rev | Line | |
---|
[79a0317] | 1 | 'use strict';
|
---|
| 2 |
|
---|
| 3 | var bind = require('function-bind');
|
---|
| 4 | var $TypeError = require('es-errors/type');
|
---|
| 5 |
|
---|
| 6 | var $call = require('./functionCall');
|
---|
| 7 | var $actualApply = require('./actualApply');
|
---|
| 8 |
|
---|
| 9 | /** @type {import('.')} */
|
---|
| 10 | module.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.