|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
565 bytes
|
| Line | |
|---|
| 1 | /** Used for built-in method references. */
|
|---|
| 2 | var objectProto = Object.prototype;
|
|---|
| 3 |
|
|---|
| 4 | /**
|
|---|
| 5 | * Used to resolve the
|
|---|
| 6 | * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|---|
| 7 | * of values.
|
|---|
| 8 | */
|
|---|
| 9 | var nativeObjectToString = objectProto.toString;
|
|---|
| 10 |
|
|---|
| 11 | /**
|
|---|
| 12 | * Converts `value` to a string using `Object.prototype.toString`.
|
|---|
| 13 | *
|
|---|
| 14 | * @private
|
|---|
| 15 | * @param {*} value The value to convert.
|
|---|
| 16 | * @returns {string} Returns the converted string.
|
|---|
| 17 | */
|
|---|
| 18 | function objectToString(value) {
|
|---|
| 19 | return nativeObjectToString.call(value);
|
|---|
| 20 | }
|
|---|
| 21 |
|
|---|
| 22 | module.exports = objectToString;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.