diff --git a/src/util/Collection.js b/src/util/Collection.js index 42c272a37..a5bf0b5f4 100644 --- a/src/util/Collection.js +++ b/src/util/Collection.js @@ -197,7 +197,7 @@ class Collection extends Map { * } */ 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)); }