Tests if a snak is a MathSnak.
The snak to check.
True if the snak is a MathSnak.
if (isMathSnak(snak)) { // Do something} Copy
if (isMathSnak(snak)) { // Do something}
Tests if a snak is a MathSnak.