From 615f9914ee37e644fb13c982d7293e42239fe024 Mon Sep 17 00:00:00 2001 From: David Braun Date: Mon, 30 Oct 2017 15:17:06 -0400 Subject: [PATCH] isChannel: Check prototype directly. --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index d068406..2b516ca 100644 --- a/lib/index.js +++ b/lib/index.js @@ -353,7 +353,7 @@ Channel.from = (values, mapfn, thisArg) => { }; Channel.of = (...values) => Channel.from(values); -Channel.isChannel = arg => prototype.isPrototypeOf(arg); +Channel.isChannel = arg => Object.getPrototypeOf(arg) === prototype; Channel.select = methodPromises => Object.assign(