Ad

The function should find the smallest (positive) number in the array.

The array can contain the following values:

  • Positive number
  • Negavitve number
  • 0
  • Null value

If no number is found, you should return 0

Note: Zero is also counted as a positive number.

#Examples

[1, 2, 3, 4] => 1
[-2, 0, 4] => 0
[-2, -5] => 0