jlongster / js-csp

CSP channels for Javascript (like Clojurescript's core.async, or Go) THIS IS AN UPSTREAM FORK
281 stars 9 forks source link

HowTo: check if value is a channel #7

Open ThomasDeutsch opened 9 years ago

ThomasDeutsch commented 9 years ago

I would like to check if a function returns a channel. What is the best way to check if the return value is a channel or not?