test if a string is a QString can also be used a type guard
the string to test
true if the string is a QString
const id = 'Q123'; if(!isQString(id)) { throw new Error('not a QString'); } WikibaseItemSnak.fromID('P42', id); Copy
const id = 'Q123'; if(!isQString(id)) { throw new Error('not a QString'); } WikibaseItemSnak.fromID('P42', id);
Generated using TypeDoc
test if a string is a QString can also be used a type guard