Closed dovydaskukalis closed 4 years ago
Doesn't this yield for everything that is not a string, including null
and instances of Date
?
Only if the value is undefined
or null
. Other types such as Date
, Number
etc simply return [] which is fine.
Code below will throw error
Cannot convert undefined or null to object
because of this line, https://github.com/Meteor-Community-Packages/meteor-collection2/blob/ebc48e2f164e0be73b699a951f48ffef108b2f33/package/collection2/lib.js#L10.