@pengzhanbo/utils - v3.7.3
    Preparing search index...

    Function isNil

    • Checks if the input is null or undefined.

      检查输入是否为 null 或 undefined。

      Parameters

      • v: unknown

        The value to check. 要检查的值

      Returns v is null | undefined

      True if the value is null or undefined, false otherwise. 如果值为 null 或 undefined 则返回 true,否则返回 false

      isNil(null) // => true
      isNil(undefined) // => true
      isNil(0) // => false