Refactor isChannel.

This commit is contained in:
David Braun 2019-04-06 10:00:11 -04:00
parent c0b2e8b411
commit 00b7b0eb29
No known key found for this signature in database
GPG key ID: 87EC41ADF710B7E2

View file

@ -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)) {