Class for the MathSnak.
Most used property of this type is P2534 (defining formula).
The snak for this class in JSON format.
const snak = new MathSnak(json); Copy
const snak = new MathSnak(json);
A math expression
Checks if the snak has a value.
True if the snak has a value.
Creates a unique ID for the Snak.
The ID.
This function checks if two snaks are equal.
The other snak.
True if the snaks are equal.
if (snak.equals(other)) { // do something } Copy
if (snak.equals(other)) { // do something }
The snak as JSON.
const json = mathSnak.toJSON(); Copy
const json = mathSnak.toJSON();
Class for the MathSnak.
Most used property of this type is P2534 (defining formula).