gitmyhub

closest_index

Ruby ★ 1 updated 16y ago

array.index returns nil if there is no match. array.closest_index returns the index of the closest match

No plain-English explanation yet — one is being written right now. Check back in a minute.