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.fromID(property); Copy
const property = 'L123'; if (!isLString(property)) { throw new Error('Not a LString'); } WikibaseLexemeSnak.fromID(property);
Tests if a string is a LString. Can also be used as a type guard.