UNPKG
@webqit/util
Version:
latest (0.8.16)
0.8.16
0.8.15
0.8.14
0.8.12
0.8.11
0.8.10
0.8.9
0.8.8
0.8.7
0.8.6
0.8.5
0.8.4
0.8.3
0.8.1
0.8.0
0.7.1
0.7.1-0
0.7.0
Utility functions used accross multiple JS libraries.
webqit.dev/tooling/util
webqit/util
@webqit/util
/
js
/
isFunction.js
17 lines
(14 loc)
•
287 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/** *
@imports
*/
import
_isTypeFunction
from
'./isTypeFunction.js'
;
/** * Tells if val is of type "function". * *
@param
object val * *
@return
bool
*/
export
default
function
(
val
) {
return
_isTypeFunction
(val) || (val && {}.
toString
.
call
(val) ===
'[object function]'
); };