Checks if the input is null or undefined.
检查输入是否为 null 或 undefined。
The value to check. 要检查的值
True if the value is null or undefined, false otherwise. 如果值为 null 或 undefined 则返回 true,否则返回 false
isNil(null) // => trueisNil(undefined) // => trueisNil(0) // => false Copy
isNil(null) // => trueisNil(undefined) // => trueisNil(0) // => false
Checks if the input is null or undefined.
检查输入是否为 null 或 undefined。