Checks if the input is defined.
检查输入是否已定义。
The type of the value to check / 要检查的值的类型
Optional
The value to check. 要检查的值
True if the value is defined, false otherwise. 如果值已定义则返回 true,否则返回 false
isDef(0) // => trueisDef(null) // => trueisDef(undefined) // => false Copy
isDef(0) // => trueisDef(null) // => trueisDef(undefined) // => false
Checks if the input is defined.
检查输入是否已定义。