I need assistance with Coffee Script to determine if an element is in an array. I am struggling with the syntax and wondering if there is a way to achieve this without having to iterate through each item individually.
Thank you,
if $(this).val() is present in ["needs_cover","comatose"]
$("#head_count").hide()
else
$("#head_count").show()