you can try to refactor this into its own method. ...
# getting-started
k
you can try to refactor this into its own method. then you can write
Copy code
if (item !is Person || item.name != "Mike") return

//do stuff with Mike