Empty Arrays: surprising behaviour |
28-Nov-2019 1750
You won’t believe what happens when all the animals run away from the zoo.There are a couple of array methods that are often useful, .any? and .all?. .any? will return true if the supplied block returns true for at least one item in the array. For example:.
Empty Arrays: surprising behaviour | #ruby #rubydeveloper #rubyonrails #Empty #Arrays: #surprising #behaviour #arrays: https://rubyonrails.ba/link/empty-arrays-surprising-behaviour