From dd3831fa1e8845f8800f1c6a37ee92f30c1e1c58 Mon Sep 17 00:00:00 2001 From: Gus Caplan Date: Thu, 30 Mar 2017 10:01:07 -0500 Subject: [PATCH] Remove type error from Collection#exists() (#1320) --- src/util/Collection.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/util/Collection.js b/src/util/Collection.js index 36d13fdd3..193c0cfd4 100644 --- a/src/util/Collection.js +++ b/src/util/Collection.js @@ -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)); }