UNPKG
@mt-kit/utils
Version:
latest (1.5.1)
1.5.1
1.5.0
1.4.0
1.3.0
1.2.2
1.2.1
1.2.0
1.1.0
1.0.1
1.0.0
一个常用的工具库
not-have.github.io/micro-tools/
Not-have/micro-tools
@mt-kit/utils
/
dist
/
is-function
/
index.js
10 lines
•
322 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
/* eslint-disable @typescript-eslint/no-explicit-any */
/** * 是否函数类型判断 *
@param
value
*
@return
{
value is Function
} 如果 value 为 function,则返回 true,否则返回 false */
export
default
function
isFunction
(
value
) {
return
typeof
value ===
"function"
; }
//# sourceMappingURL=index.js.map