How to use the core-util-is.isBoolean function in core-util-is

To help you get started, we’ve selected a few core-util-is examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github trygve-lie / twitter-stream-api / lib / main.js View on Github external
var Twitter = module.exports = function (keys, param1, param2)  { 
    var self = this;
    var objectMode = true;
    var options = {};

    if (utils.isBoolean(param1)) {
        objectMode = param1;
    }

    if (utils.isObject(param1)) {
        options = param1;
    }

    if (utils.isObject(param2)) {
        options = param2;
    }

    this.connection = new Connection(keys, options);
    this.streamEndpoint = 'statuses/filter';
    this.streamParams = null;
    
    Readable.call(this, {objectMode: objectMode});