From 60a1ba308880bd099e5a5d25cbe6528d2c415756 Mon Sep 17 00:00:00 2001 From: Schuyler Cebulskie Date: Tue, 30 Aug 2016 04:46:40 -0400 Subject: [PATCH] Fix Collection.exists (#566) --- src/util/Collection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/Collection.js b/src/util/Collection.js index e1e682be9..3f706728d 100644 --- a/src/util/Collection.js +++ b/src/util/Collection.js @@ -114,7 +114,7 @@ class Collection extends Map { * } */ exists(key, value) { - return Boolean(this.get(key, value)); + return Boolean(this.find(key, value)); } _arrayMethod(method, args) {