gideonairex/disqueue-node

View on GitHub
lib/commands-list/enqueue.js

Summary

Maintainability
A
1 hr
Test Coverage
'use strict';

module.exports = function ( jobIds ) {

    var command = [ 'ENQUEUE' ];

    if ( typeof jobIds === 'object' ) {
        command = command.concat( jobIds );
    } else {
        command.push( jobIds );
    }

    return command;

};