esamattis / esamattis/underscore.string

Using `_.lines` for strings that ends (and starts) with newline

Open
#188 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
3.4k
Forks
367
PR merge metrics
No merged PRs in 30d

Description

I ran the following and three strings were returned.

``` javascript
_("Hello\nWorld\n").lines();

// result: ["Hello", "World", ""]
```

However, the current `README` only shows how the function is used.

My question is what is the expected behavior? For me, I think the current result is fine.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.