Remove type error from Collection#exists() (#1320)

This commit is contained in:
Gus Caplan
2017-03-30 10:01:07 -05:00
committed by Schuyler Cebulskie
parent 5334682682
commit dd3831fa1e

View File

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