mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 00:27:50 +00:00
Apply let/const transform.
This commit is contained in:
@@ -3,7 +3,7 @@ import noop from './noop.js';
|
||||
import setToArray from './_setToArray.js';
|
||||
|
||||
/** Used as references for various `Number` constants. */
|
||||
var INFINITY = 1 / 0;
|
||||
const INFINITY = 1 / 0;
|
||||
|
||||
/**
|
||||
* Creates a set object of `values`.
|
||||
@@ -12,6 +12,6 @@ var INFINITY = 1 / 0;
|
||||
* @param {Array} values The values to add to the set.
|
||||
* @returns {Object} Returns the new set.
|
||||
*/
|
||||
var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : values => new Set(values);
|
||||
const createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : values => new Set(values);
|
||||
|
||||
export default createSet;
|
||||
|
||||
Reference in New Issue
Block a user