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. If you give it no arguments, it’ll return an empty list.
Example Formulas
concat(
[1, 2, 3],
[4, 5, 6]
)
/* Output: [1, 2, 3, 4, 5, 6] */
Code language: JavaScript (javascript)
See the Latest Activity formula in Ultimate Brain for a more robust example of concat()
in action.