Remove a value from an array in CoffeeScript
I have a an array

    array = [..., "Hello", "World", "Again", ...]

How could I check if "World" is in the array?
Then remove it if it exists?
And have a reference to "World"?

Sometimes maybe I wanna match a word with a regexp and in that case I won't know the exact string so I need to have a reference to the matched String. But in this case I know for sure it's "World" which makes it simpler.
Remove a value from an array in CoffeeScript
===

I have a an array

    array = [..., "Hello", "World", "Again", ...]

How could I check if "World" is in the array?
Then remove it if it exists?
And have a reference to "World"?

Sometimes maybe I wanna match a word with a regexp and in that case I won't know the exact string so I need to have a reference to the matched String. But in this case I know for sure it's "World" which makes it simpler.