Function objectToString

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

    Parameters

    • value: unknown

    Returns `[object ${OBJECT_STRING_TAG}]`

    Since

    1.0.0

    Example

    objectToString({});
    // => "[object Object]"

    Example

    objectToString(2);
    // => "[object Number]"