Apply more let/const transforms.

This commit is contained in:
John-David Dalton
2017-01-08 23:38:19 -08:00
parent ca9e6fa087
commit 4d0c15b49e
115 changed files with 621 additions and 613 deletions

View File

@@ -1,5 +1,5 @@
/** Used for built-in method references. */
var objectProto = Object.prototype;
const objectProto = Object.prototype;
/**
* Checks if `value` is likely a prototype object.
@@ -9,8 +9,8 @@ var objectProto = Object.prototype;
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
*/
function isPrototype(value) {
var Ctor = value && value.constructor,
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
const Ctor = value && value.constructor;
const proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
return value === proto;
}