Array_empty Oct 24th, 2018 11:12 am ref https://stackoverflow.com/questions/5878697/how-do-i-remove-blank-elements-from-an-array 1 2 3 4 5 array = [[], "", "2", nil] array.compact #[[], "", "2"] array.reject(&:blank?) #["2"]