You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
565 B
23 lines
565 B
2 months ago
|
/** Used for built-in method references. */
|
||
|
var objectProto = Object.prototype;
|
||
|
|
||
|
/**
|
||
|
* Used to resolve the
|
||
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
||
|
* of values.
|
||
|
*/
|
||
|
var nativeObjectToString = objectProto.toString;
|
||
|
|
||
|
/**
|
||
|
* Converts `value` to a string using `Object.prototype.toString`.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {*} value The value to convert.
|
||
|
* @returns {string} Returns the converted string.
|
||
|
*/
|
||
|
function objectToString(value) {
|
||
|
return nativeObjectToString.call(value);
|
||
|
}
|
||
|
|
||
|
module.exports = objectToString;
|