How to use the utils.isObject function in utils

To help you get started, we’ve selected a few utils 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 galaxyproject / galaxy-beta1 / test / casperjs / api-configuration-tests.js View on Github external
function hasKeys( object, keysArray ){
    if( !utils.isObject( object ) ){ return false; }
    for( var i=0; i
github HuddleEng / PhantomXHR / CasperJs / modules / injector.js View on Github external
this.process = function process(values) {
        var fnObj = this.extract(this.fn);
        if (!utils.isObject(fnObj)) {
            throw new CasperError("Unable to process function " + this.fn.toString());
        }
        var inject = this.getArgsInjectionString(fnObj.args, values);
        var newFn = new Function([inject, fnObj.body].join('\n'));
        newFn.name = fnObj.name || '';
        return newFn;
    };
github casperjs / casperjs / modules / injector.js View on Github external
this.process = function process(values) {
        var fnObj = this.extract(this.fn);
        if (!utils.isObject(fnObj)) {
            throw new CasperError("Unable to process function " + this.fn.toString());
        }
        var inject = this.getArgsInjectionString(fnObj.args, values);
        var newFn = new Function([inject, fnObj.body].join('\n'));
        newFn.name = fnObj.name || '';
        return newFn;
    };

utils

Fast, generic JavaScript/node.js utility functions.

MIT
Latest version published 9 years ago

Package Health Score

44 / 100
Full package analysis