Returns the first not nil element in the given objects, or undefined if all elements are nil
the objects to check
the first not nil element in the given objects, or undefined if all elements are nil
David Hsing
firstNotNil(null, undefined, 'foo', 'bar', {}); // 'foo' Copy
firstNotNil(null, undefined, 'foo', 'bar', {}); // 'foo'
Returns the first not nil element in the given objects, or undefined if all elements are nil