Tests if a string is a QString. Can also be used as 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);
Tests if a string is a QString. Can also be used as a type guard.