.join(characters)

Description

Join takes in an array and returns a string of all the items joined together by a set of characters, it is the inverse of .split(characters)

Parameters

Join needs the characters to join the array by

Usage On Strings

num = ["hello","world,","im","doing","pretty","well"]

log num.join(" ")
// "hello world, im doing pretty well"

Last updated