• Ensure that something is an object.

    Turns undefined and null into Strings and all other primitives into instances of their respective wrapper classes (String, Boolean, Number, etc.). Acts as the identity function on non-primitives.

    Parameters

    • wat: unknown

      The subject of the objectification

    Returns typeof Object

    A version of wat which can safely be used with Object class methods

Generated using TypeDoc