Refactor isChannel
.
This commit is contained in:
parent
c0b2e8b411
commit
00b7b0eb29
1 changed files with 4 additions and 2 deletions
|
@ -394,8 +394,10 @@ Channel.from = (values, mapfn, thisArg) => {
|
||||||
|
|
||||||
Channel.of = (...values) => Channel.from(values);
|
Channel.of = (...values) => Channel.from(values);
|
||||||
|
|
||||||
Channel.isChannel = arg =>
|
Channel.isChannel = value =>
|
||||||
arg !== undefined && arg !== null && Object.getPrototypeOf(arg) === prototype;
|
value !== undefined &&
|
||||||
|
value !== null &&
|
||||||
|
Object.getPrototypeOf(value) === prototype;
|
||||||
|
|
||||||
Channel.select = methodPromises => {
|
Channel.select = methodPromises => {
|
||||||
if (!Array.isArray(methodPromises)) {
|
if (!Array.isArray(methodPromises)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue