Function get

  • Splits str into an array of lines.

    Parameters

    • str: string

    Returns string[]

    lines.split("hello\\nhello\nhello"); // ["hello\\nhello", "hello"]