wip: code formatting nits

This commit is contained in:
jdalton
2023-09-16 16:18:43 -07:00
parent 97d4a2fe19
commit 0b28b7f7b6
107 changed files with 166 additions and 164 deletions

View File

@@ -6,7 +6,7 @@ import runInContext from '../src/runInContext';
describe('debounce and throttle', () => {
lodashStable.each(['debounce', 'throttle'], (methodName) => {
const func = _[methodName],
isDebounce = methodName == 'debounce';
isDebounce = methodName === 'debounce';
it(`\`_.${methodName}\` should not error for non-object \`options\` values`, () => {
func(noop, 32, 1);
@@ -82,7 +82,7 @@ describe('debounce and throttle', () => {
const lodash = runInContext({
Date: {
now: function () {
return ++dateCount == 4
return ++dateCount === 4
? +new Date(2012, 3, 23, 23, 27, 18)
: +new Date();
},