Skip to content

Question: how should this library handle undefined/null ? #20

Open
@callmemagnus

Description

This is more a question than an issue.

I was looking at the tests and wasn't able to answer the following question: how should word-wrap handle the nullor undefined case ?

I saw this in the index.js

if (str == null) {
    return str;
}

Don't you think this should return an empty string ?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions