You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
203 B

4 years ago
  1. 'use strict';
  2. /**
  3. * Variadic helper function
  4. *
  5. * @param args
  6. * @returns {*}
  7. */
  8. module.exports = function variadic(args) {
  9. if (Array.isArray(args[0])) {
  10. return args[0];
  11. }
  12. return args;
  13. };