JSFiddle - React, Tailwind, and code Playground
CoffeeScript
a = [
"bird",
"cat",
"moose"
]
testfunc = (b) ->
e = ""
for c in b
do (c) ->
if c is "moose"
e = c
return e
console.log testfunc(a)