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

    Type Alias IsPrimitive<T>

    IsPrimitive: [T] extends [Primitive] ? true : false

    If the type T accepts type Primitive, output type true, otherwise output type false.

    type Primitive = string | number | boolean | bigint | symbol | null | undefined

    如果类型 T 接受类型 Primitive,则输出 true,否则输出 false。

    Type Parameters

    • T

      要检查的类型