mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-25 06:49:15 +01:00
16 lines
203 B
JavaScript
Vendored
16 lines
203 B
JavaScript
Vendored
'use strict';
|
|
|
|
/**
|
|
* Variadic helper function
|
|
*
|
|
* @param args
|
|
* @returns {*}
|
|
*/
|
|
|
|
module.exports = function variadic(args) {
|
|
if (Array.isArray(args[0])) {
|
|
return args[0];
|
|
}
|
|
|
|
return args;
|
|
}; |