var InstanceOf = require('instance-of');// example objects.var Stream = require('stream'), Util = require('util'), Actor = require('chix-flow').Actor, stream = new Stream();function report(obj, type) { if(InstanceOf(obj, type)) { console.log('YES! is a', type); } else { console.log('Nope! not a', type); }}report(stream, 'Stream');report(Util, 'Object');report(Util, 'object');report(true, 'boolean');report(false, 'boolean');report(100, 'number');report("string", 'number');report(new Array(), 'array');report(new Array(), 'Array');report("string", 'string');report(new Actor(), 'Actor');report(new Actor(), 'Handler');YES! is a StreamYES! is a ObjectYES! is a objectYES! is a booleanYES! is a booleanYES! is a numberNope! not a numberYES! is a arrayYES! is a ArrayYES! is a stringYES! is a ActorYES! is a Handler