UNPKG
care-js
Version:
latest (3.3.4)
3.3.4
Standard library
care-js
/
internals
/
a-function.js
6 lines
(5 loc)
•
140 B
JavaScript
View Raw
1
2
3
4
5
6
module
.
exports
=
function
(
it
) {
if
(
typeof
it !=
'function'
) {
throw
TypeError
(
String
(it) +
' is not a function'
); }
return
it; };