Closed lygstate closed 7 years ago
There's really only two possible meanings imo (based on common conventions) - item && (typeof item === 'object' || typeof item === 'function')
(in other words, what the spec considers a Type "Object", aka a non-primitive), or item && typeof item === 'object' && !Array.isArray(item)
(what convention calls a "plain object").
I feel like the former would be a better choice, since it would precisely match all the places in the spec that check if "Type(x) is Object".
Yeap, I prefer the former version.
I believe the current proposal handles this appropriately
Does the following pollyflil works?