Find Smallest Integer In Array Javascript Length Function In Oracle