Reputation: 412
I have a function that receives a Meteor Collection object (that generated by new Meteor.Collection("lol_cats")
)
How do I reliably tell whether any particular object is such a Meteor Collection object or not?
Upvotes: 2
Views: 80
Reputation: 1468
Use Javascript's instanceof
operator: if (x instanceof Meteor.Collection)
.
Upvotes: 1