Closed NiGhTTraX closed 7 years ago
There is no reason do this double check:
result.length && result[0]
@christian-bromann @NiGhTTraX 's intention was to avoid a runtime exception in the case of arrays like [undefined]
or [null]
. Checking the array's length is > 0 is insufficient, as the PR's title states.
Fixes #43.