Closed Eswcvlad closed 4 months ago
With keys, null is not getting coerced to object and throws a TypeError, which is unexpected:
null
object
keys(`null`)
TypeError
This also contradicts:
If the object is null, the value return an empty array
which is just based on the implicit rule.
Similar behavior with "values":
values(`null`)
With keys,
null
is not getting coerced toobject
and throws a TypeError, which is unexpected:keys(`null`)
->TypeError
This also contradicts:
which is just based on the implicit rule.