mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 18:37:50 +00:00
Use != instead of !== when value is guaranteed to be a string.
This commit is contained in:
@@ -5171,7 +5171,7 @@
|
|||||||
function isKeyable(value) {
|
function isKeyable(value) {
|
||||||
var type = typeof value;
|
var type = typeof value;
|
||||||
return type == 'number' || type == 'boolean' ||
|
return type == 'number' || type == 'boolean' ||
|
||||||
(type == 'string' && value !== '__proto__') || value == null;
|
(type == 'string' && value != '__proto__') || value == null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user