Returns the first not empty element in the given array, or null if all elements are nil
Optional
the array to check
the first not empty element in the given array, or null if all elements are nil
firstNotEmpty([null, undefined, {}, 'foo', 'bar']); // 'foo' Copy
firstNotEmpty([null, undefined, {}, 'foo', 'bar']); // 'foo'
Returns the first not empty element in the given array, or null if all elements are nil