搜索文档
is(val, type): boolean
val
type
boolean
判断类型的 is 函数
unknown
string
是否为指定类型
Example
is([], 'Array'); // => true is({}, 'Object'); // => true is('', 'String'); // => true