349 B
349 B
title |
---|
Variadic |
A variadic function is a function that accepts a variable number of arguments.
For example, JavaScript's console.log
method is variadic:
console.log('one')
console.log('one', 'two')
console.log('one', 'two', 'three')
console.log('It', 'word', 'regardless', 'of', 'how', 'many', 'arguments', 'you', 'pass')