The concat()
function concatenates (aka combines) its arguments. It accepts one or more list arguments, and outputs a single combined list.
concat(list)
concat(list, list, ...)
list.concat(list)
list.concat(list, ...)
Code language: JavaScript (javascript)
concat()
can accept any number of arguments.