Function isPrimitive

  • Checks whether a given value is a primitive, where a primitive is one of:

    • string
    • number
    • boolean

    Returns

    Returns a boolean indicating whether the value is a primitive

    Parameters

    • value: any

    Returns boolean

Generated using TypeDoc