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
/
isSet.js
13 lines
(12 loc)
•
288 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
import
{ toString }
from
'./init'
;
/** *
@description
是否Set * *
@param
{
*
} v 任意值 *
@return
{
*
} {
boolean
} 返回一个布尔值 *
@example
isSet() => true|false */
const
isSet
= (
v
) => {
return
toString.
call
(v) ===
'[object Set]'
; };
export
default
isSet;