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