Documentation - v7.4.0
    Preparing search index...
    • Similar to typeof, but distinguish plain objects from null and arrays

      Parameters

      • value: unknown

      Returns
          | "string"
          | "number"
          | "bigint"
          | "boolean"
          | "symbol"
          | "undefined"
          | "object"
          | "function"
          | "null"
          | "array"

      'null' for null, 'array' for arrays, or the result of typeof for everything else.