Lines
Explanation
Examples
"foo".lines == "foo"
"Hello
World" == ["Hello", "World"]
"Hello\r\nWorld" == ["Hello", "World"]Last updated
Was this helpful?
type
returns
Getter
array<string>
Returns an array of the given string's lines. This is a cross-platform solution which supports non-standard line breaks.
"foo".lines == "foo"
"Hello
World" == ["Hello", "World"]
"Hello\r\nWorld" == ["Hello", "World"]Last updated
Was this helpful?
Was this helpful?