How do I check an array for empty strings?
You want to check the array for empty strings.
I wrote it like this, but I feel that it can be more beautiful.
json.includes ('');Lydia Blanchard
arr.some (item = & gt; item === '')
Or like this:
arr.some (item = & gt;! item)
In the second case, all `null`,` undefined` and everything that converts to `false` will also be foundAnonymous
To place the code, please use CodePen or similar tool. Thanks you!