the snak for this class in json format
const snak = new WikibaseItemSnak(snak);
Private
_numericIDtrue if the snak has a value
the value of the snak
id
the value of the snak
id
create a unique id for the Snak
the id
the value of the snak
numericID
the value of the snak
numericID
this function checks if two snaks are equal
the other snak
true if the snaks are equal
if (snak.equals(other)) {
// do something
}
Static
fromIDcreate a snak from some basic data
the property of the snak in 'P-form'
the Wikibase item id in the Q-form
a snak with the given properties
const snak = WikibaseItemSnak.fromData('P2860', 'Q42');
Generated using TypeDoc
class for the WikibaseItemSnak
most used property of this type P2860 (cites work)