@metreeca/core - v0.9.22
    Preparing search index...

    Function isPrimitive

    • Checks if a value is a Primitive.

      Objects are rejected whatever their shape, including functions and wrapper instances such as new String("value").

      Parameters

      • value: unknown

        The value to check

      Returns value is Primitive

      True if the value is undefined, null, a boolean, a number, a bigint, a string, or a symbol; false otherwise