Function isBoxedPrimitive

Checks if value is a boxed primitive. Boxed primitives are:

  • String
  • Number
  • Boolean
  • Parameters

    • val: any

    Returns val is
        | bigint
        | String
        | Number
        | Boolean
        | Symbol