Tests if a string is a LString. Can also be used as a type guard.
The string to test.
True if the string is a LString.
const property = 'L123'; if (!isLString(property)) { throw new Error('Not a LString'); } WikibaseLexemeSnak.fromData('P6553', property); Copy
const property = 'L123'; if (!isLString(property)) { throw new Error('Not a LString'); } WikibaseLexemeSnak.fromData('P6553', property);
Tests if a string is a LString. Can also be used as a type guard.