Add isValid() method doc for collections

This commit is contained in:
Scott Kyle 2016-06-16 17:50:30 -07:00
parent 8f3c778b72
commit 979c035dbb
1 changed files with 7 additions and 0 deletions

View File

@ -29,6 +29,13 @@ class Collection {
*/
get length() {}
/**
* Checks if this collection has not been deleted and is part of a valid Realm.
* @returns {boolean} indicating if the collection can be safely accessed.
* @since 0.14.0
*/
isValid() {}
/**
* Returns new _Results_ that represent this collection being filtered by the provided query.
* @param {string} query - Query used to filter objects from the collection.