mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 03:17:49 +00:00
Apply even more let/const transforms.
This commit is contained in:
@@ -2,18 +2,18 @@ import arrayEach from './_arrayEach.js';
|
||||
import arrayIncludes from './_arrayIncludes.js';
|
||||
|
||||
/** Used to compose bitmasks for function metadata. */
|
||||
var WRAP_BIND_FLAG = 1,
|
||||
WRAP_BIND_KEY_FLAG = 2,
|
||||
WRAP_CURRY_FLAG = 8,
|
||||
WRAP_CURRY_RIGHT_FLAG = 16,
|
||||
WRAP_PARTIAL_FLAG = 32,
|
||||
WRAP_PARTIAL_RIGHT_FLAG = 64,
|
||||
WRAP_ARY_FLAG = 128,
|
||||
WRAP_REARG_FLAG = 256,
|
||||
WRAP_FLIP_FLAG = 512;
|
||||
const WRAP_BIND_FLAG = 1;
|
||||
const WRAP_BIND_KEY_FLAG = 2;
|
||||
const WRAP_CURRY_FLAG = 8;
|
||||
const WRAP_CURRY_RIGHT_FLAG = 16;
|
||||
const WRAP_PARTIAL_FLAG = 32;
|
||||
const WRAP_PARTIAL_RIGHT_FLAG = 64;
|
||||
const WRAP_ARY_FLAG = 128;
|
||||
const WRAP_REARG_FLAG = 256;
|
||||
const WRAP_FLIP_FLAG = 512;
|
||||
|
||||
/** Used to associate wrap methods with their bit flags. */
|
||||
var wrapFlags = [
|
||||
const wrapFlags = [
|
||||
['ary', WRAP_ARY_FLAG],
|
||||
['bind', WRAP_BIND_FLAG],
|
||||
['bindKey', WRAP_BIND_KEY_FLAG],
|
||||
@@ -35,7 +35,7 @@ var wrapFlags = [
|
||||
*/
|
||||
function updateWrapDetails(details, bitmask) {
|
||||
arrayEach(wrapFlags, pair => {
|
||||
var value = `_.${ pair[0] }`;
|
||||
const value = `_.${ pair[0] }`;
|
||||
if ((bitmask & pair[1]) && !arrayIncludes(details, value)) {
|
||||
details.push(value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user