mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 17:37:50 +00:00
Apply let/const transform.
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import nativeCreate from './_nativeCreate.js';
|
||||
|
||||
/** Used for built-in method references. */
|
||||
var objectProto = Object.prototype;
|
||||
const objectProto = Object.prototype;
|
||||
|
||||
/** Used to check objects for own properties. */
|
||||
var hasOwnProperty = objectProto.hasOwnProperty;
|
||||
const hasOwnProperty = objectProto.hasOwnProperty;
|
||||
|
||||
/**
|
||||
* Checks if a hash value for `key` exists.
|
||||
@@ -16,7 +16,7 @@ var hasOwnProperty = objectProto.hasOwnProperty;
|
||||
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
||||
*/
|
||||
function hashHas(key) {
|
||||
var data = this.__data__;
|
||||
const data = this.__data__;
|
||||
return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user