Fix collection.find/findAll docs

This commit is contained in:
Amish Shah
2016-09-04 21:41:09 +01:00
parent 28169c0f55
commit 7b870d13de
2 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@@ -64,7 +64,7 @@ class Collection extends Map {
* @param {*} value The expected value
* @returns {array}
* @example
* collection.getAll('username', 'Bob');
* collection.findAll('username', 'Bob');
*/
findAll(key, value) {
if (typeof key !== 'string') throw new TypeError('key must be a string');
@@ -82,7 +82,7 @@ class Collection extends Map {
* @param {*} value The expected value
* @returns {*}
* @example
* collection.get('id', '123123...');
* collection.find('id', '123123...');
*/
find(key, value) {
if (typeof key !== 'string') throw new TypeError('key must be a string');