rest operator

[/rɛst ˈɑːpəreɪtər/]
nounpl: rest operators
operador rest
1. A JavaScript syntax feature (represented by three dots ...) that allows an iterable to be expanded in places where zero or more elements are expected
The rest operator allows you to collect remaining arguments into an array: function sum(...numbers) { return numbers.reduce((a, b) => a + b); }
O operador rest permite coletar argumentos restantes em um array: function soma(...numeros) { return numeros.reduce((a, b) => a + b); }
2. In programming, a feature used in function parameters to gather multiple arguments or in destructuring to collect remaining properties or elements
Using the rest operator in destructuring: const [first, ...rest] = [1, 2, 3, 4];
Usando o operador rest em desestruturação: const [primeiro, ...resto] = [1, 2, 3, 4];
The rest operator is a modern JavaScript feature introduced in ES6 (2015). It is part of technical jargon used by software developers globally. Both English and Portuguese-speaking developers use the term 'rest operator' or 'operador rest' interchangeably, with the Portuguese version being more common in educational and localized technical documentation in Brazil and Portugal.
Synonyms / Sinônimos
spread operator (in some contexts)variadic operatorgather operator
Antonyms / Antônimos
spread syntax (when used in opposite context)

Regional Variations

General Brazilian
operador rest
Standard technical term used in programming contexts
Portugal
operador rest
Same terminology as Brazil; technical terms are largely standardized
USA/International
rest operator
Original English term widely used even in non-English speaking countries

Related Words

spread operatordestructuringvariadic functionparameter
Look up more words on Fala2Me
The free English-Portuguese dictionary with real Brazilian accents, NYC slang, conjugator and more
Open Fala2Me →