|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 13 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
354 bytes
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 | var isCallable = require('../internals/is-callable');
|
|---|
| 3 | var tryToString = require('../internals/try-to-string');
|
|---|
| 4 |
|
|---|
| 5 | var $TypeError = TypeError;
|
|---|
| 6 |
|
|---|
| 7 | // `Assert: IsCallable(argument) is true`
|
|---|
| 8 | module.exports = function (argument) {
|
|---|
| 9 | if (isCallable(argument)) return argument;
|
|---|
| 10 | throw new $TypeError(tryToString(argument) + ' is not a function');
|
|---|
| 11 | };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.