Function objectToStringTag

  • Converts value to a string tag using Object.prototype.toString.

    Parameters

    • value: unknown

    Returns OBJECT_STRING_TAG

    Since

    1.0.0

    Example

    objectToStringTag({});
    // => "Object"

    Example

    objectToStringTag(2);
    // => "Number"