mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 10:07:48 +00:00
Apply let/const transform.
This commit is contained in:
@@ -2,13 +2,13 @@ import arrayFilter from './_arrayFilter.js';
|
||||
import stubArray from './stubArray.js';
|
||||
|
||||
/** Used for built-in method references. */
|
||||
var objectProto = Object.prototype;
|
||||
const objectProto = Object.prototype;
|
||||
|
||||
/** Built-in value references. */
|
||||
var propertyIsEnumerable = objectProto.propertyIsEnumerable;
|
||||
const propertyIsEnumerable = objectProto.propertyIsEnumerable;
|
||||
|
||||
/* Built-in method references for those with the same name as other `lodash` methods. */
|
||||
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
||||
const nativeGetSymbols = Object.getOwnPropertySymbols;
|
||||
|
||||
/**
|
||||
* Creates an array of the own enumerable symbols of `object`.
|
||||
@@ -17,7 +17,7 @@ var nativeGetSymbols = Object.getOwnPropertySymbols;
|
||||
* @param {Object} object The object to query.
|
||||
* @returns {Array} Returns the array of symbols.
|
||||
*/
|
||||
var getSymbols = !nativeGetSymbols ? stubArray : object => {
|
||||
const getSymbols = !nativeGetSymbols ? stubArray : object => {
|
||||
if (object == null) {
|
||||
return [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user