From 00b7b0eb29377c78f824b9d1933252bed18039af Mon Sep 17 00:00:00 2001 From: David Braun Date: Sat, 6 Apr 2019 10:00:11 -0400 Subject: [PATCH] Refactor `isChannel`. --- lib/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/index.js b/lib/index.js index 7e2c384..0eecf99 100644 --- a/lib/index.js +++ b/lib/index.js @@ -394,8 +394,10 @@ Channel.from = (values, mapfn, thisArg) => { Channel.of = (...values) => Channel.from(values); -Channel.isChannel = arg => - arg !== undefined && arg !== null && Object.getPrototypeOf(arg) === prototype; +Channel.isChannel = value => + value !== undefined && + value !== null && + Object.getPrototypeOf(value) === prototype; Channel.select = methodPromises => { if (!Array.isArray(methodPromises)) {