What's the best way to check if a record exists in a collection?
I use (typeof $.collection.get(id)!=="undefined"). Any better/standard way?
What's the best way to check if a record exists in a collection?
I use (typeof $.collection.get(id)!=="undefined"). Any better/standard way?