You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -233,15 +233,20 @@ type X = {
233
233
234
234
## Q. What is Rest parameters?
235
235
236
-
The rest parameter is used to pass zero or more values to a function. It is declared by prefixing the three **dot** characters **('...')** before the parameter. It allows the functions to have a variable number of arguments without using the arguments object.
236
+
The rest parameter is used to pass zero or more values to a function. It is declared by prefixing the three **dot** characters **('...')** before the parameter. It allows the functions to have a variable number of arguments without using the arguments object.
237
237
238
238
**Rules**:
239
239
240
240
* Only one rest parameter is allowed in a function.
241
241
* It must be an array type.
242
242
* It must be a last parameter in the parameter list.
0 commit comments