function test(input) { return (input is Array) ? input[0] : input; } function main() {}