UNPKG
js-wrench
Version:
latest (1.3.1)
1.3.1
1.3.0
1.2.2
1.2.1
JS函数库
js-wrench
/
dist
/
modules
/
isMap.js
13 lines
(12 loc)
•
291 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
import
{ toString }
from
'./init'
;
/** *
@description
是否Map * *
@param
{
*
} v 任意值 *
@return
{
*
} {
boolean
} 返回一个布尔值 *
@example
isMap(new Map()) => true */
const
isMap
= (
v
) => {
return
toString.
call
(v) ===
'[object Map]'
; };
export
default
isMap;