Consolidate prototype vars used only once.

This commit is contained in:
John-David Dalton
2017-01-09 18:16:47 -08:00
parent bc4262f901
commit f2c49500ee
25 changed files with 27 additions and 104 deletions

View File

@@ -1,12 +1,9 @@
/** Used for built-in method references. */
const objectProto = Object.prototype;
/**
* Used to resolve the
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
* of values.
*/
const nativeObjectToString = objectProto.toString;
const nativeObjectToString = Object.prototype.toString;
/**
* Converts `value` to a string using `Object.prototype.toString`.