要检查的值
如果值为空则返回true,否则返回false
isEmpty(null)// =\> true * isEmpty(undefined)// =\> trueisEmpty(true)// =\> trueisEmpty(1)// =\> trueisEmpty([1, 2, 3])// =\> falseisEmpty('abc')// =\> falseisEmpty({ 'a': 1 })// =\> false Copy
isEmpty(null)// =\> true * isEmpty(undefined)// =\> trueisEmpty(true)// =\> trueisEmpty(1)// =\> trueisEmpty([1, 2, 3])// =\> falseisEmpty('abc')// =\> falseisEmpty({ 'a': 1 })// =\> false
获取值的类型标签
类型标签字符串
Param: value
要检查的值
Returns
如果值为空则返回true,否则返回false
Example