Use != instead of !== when value is guaranteed to be a string.

This commit is contained in:
John-David Dalton
2016-02-15 16:36:20 -08:00
parent 607fe2a5f6
commit ba2d3f7704

View File

@@ -5171,7 +5171,7 @@
function isKeyable(value) {
var type = typeof value;
return type == 'number' || type == 'boolean' ||
(type == 'string' && value !== '__proto__') || value == null;
(type == 'string' && value != '__proto__') || value == null;
}
/**