mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 10:27:49 +00:00
perfomance fixes, eslint fixes (#4482)
This commit is contained in:
committed by
John-David Dalton
parent
29eb5713f5
commit
898b378f06
@@ -17,8 +17,8 @@ function isIndex(value, length) {
|
||||
length = length == null ? MAX_SAFE_INTEGER : length
|
||||
|
||||
return !!length &&
|
||||
(type == 'number' ||
|
||||
(type != 'symbol' && reIsUint.test(value))) &&
|
||||
(type === 'number' ||
|
||||
(type !== 'symbol' && reIsUint.test(value))) &&
|
||||
(value > -1 && value % 1 == 0 && value < length)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user