index.js
function checkPreconditions(options) {
    if (!options) {
        throw Error("'options' must be specified!");
    }

    if (!(options.modules instanceof Array)) {
        throw Error("'options.modules' must be an array!");
    }

    // If the modules array is empty, immediately call the onComplete() if it exists
    if (!options.modules.length) {
        if (options.onComplete) {
            invokeOnComplete(options);
        }

        return false;
    }

    return true;
}
function checkPreconditions(options) {
    if (!options) {
        throw Error("'options' must be specified!");
    }

    if (!(options.modules instanceof Array)) {
        throw Error("'options.modules' must be an array!");
    }

    // If the modules array is empty, immediately call the onComplete() if it exists
    if (!options.modules.length) {
        if (options.onComplete) {
            invokeOnComplete(options);
        }

        return false;
    }

    return true;
}
function checkPreconditions ( options ) { if ( ! options ) { throw Error ( "'options' must be specified!" ) ; } if ( ! ( options . modules instanceof Array ) ) { throw Error ( "'options.modules' must be an array!" ) ; } // If the modules array is empty, immediately call the onComplete() if it exists if ( ! options . modules . length ) { if ( options . onComplete ) { invokeOnComplete ( options ) ; } return false ; } return true ; }
Checks the preconditions when slinker is invoked. Returns true if all preconditions have been
met and slinker should be invoked.

options {Object} options
The options passed to slinker
Checks the preconditions when slinker is invoked . Returns true if all preconditions have been met and slinker should be invoked .