> For the complete documentation index, see [llms.txt](https://docs.cheddar.vihan.org/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cheddar.vihan.org/docs/standard-library/string/lines.md).

# Lines

| type   | returns         |
| ------ | --------------- |
| Getter | `array<string>` |

## Explanation

Returns an array of the given string's lines. This is a cross-platform solution which supports non-standard line breaks.

## Examples

```swift
"foo".lines == "foo"

"Hello
World" == ["Hello", "World"]

"Hello\r\nWorld" == ["Hello", "World"]
```
