debian-mirror-gitlab/core-js/internals/a-function.js

6 lines
140 B
JavaScript
Raw Normal View History

2019-09-25 13:30:05 +05:30
module.exports = function (it) {
if (typeof it != 'function') {
throw TypeError(String(it) + ' is not a function');
} return it;
};