.split(characters)

Description

Split takes in a string and creates an array of parts of the string based on the parameter of the method, it does the inverse of the .join(characters)

Parameters

Split needs the characters to split the array by

Usage On Strings

num = "hello world, im doing pretty well"

log num.split(" ")
// ["hello","world,","im","doing","pretty","well"]

Last updated