1
0
Fork 0
freesewing/markdown/dev/reference/terms/variadic/en.md
2024-02-17 19:55:56 +01:00

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')