Similarly, we can also use the length method to check for an empty array in Ruby. Example: prices = [] if !prices.length puts " ...
確定! 回上一頁