Don't mind me

This commit is contained in:
Schuyler Cebulskie
2016-11-13 01:07:45 -05:00
parent 27270a3bad
commit da9d1a3daf

View File

@@ -197,7 +197,7 @@ class Collection extends Map {
* } * }
*/ */
exists(prop, value) { exists(prop, value) {
if (prop === 'id') throw new RangeError('Don\'t use .find() with IDs. Instead, use .get(id).'); if (prop === 'id') throw new RangeError('Don\'t use .find() with IDs. Instead, use .has(id).');
return Boolean(this.find(prop, value)); return Boolean(this.find(prop, value));
} }