Closed nessor closed 3 years ago
The blank()
helper is doing exactly what you are searching for.
Oh boi. That's nice! nvm
BTW: Why isn't there a static method for this?
Because it's not limited to strings, you can pass in arrays, numbers and booleans too.
Would it perhaps be helpful to add a method isNullOrEmpty for the string helpers? The implementation would be very simple. Maybe like this:
What do you guys think?