Tests if a string is a SenseString. Can also be used as a type guard.
The string to test.
True if the string is a SenseString.
const property = 'L123-S4'; if (!isSenseString(property)) { throw new Error('Not a SenseString'); } WikibaseSenseSnak.fromID(property); Copy
const property = 'L123-S4'; if (!isSenseString(property)) { throw new Error('Not a SenseString'); } WikibaseSenseSnak.fromID(property);
Tests if a string is a SenseString. Can also be used as a type guard.