index.js 350 Bytes
'use strict'

/*
 * indicative
 *
 * (c) Harminder Virk <virk@adonisjs.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
*/

module.exports = function (name, args) {
  return {
    name,
    args: !args ? [] : (args instanceof Array === true ? args : [args])
  }
}