UNPKG

ocat-lang

Version:

A programming language for the web design and development

11 lines (10 loc) 309 B
export const isValue = (word: string) => !isNaN(Number(word)) || word.match(/\b(true|false)\b/) || word.match(/\b(null)\b/) || word.startsWith('"') || word.endsWith('"') || word.startsWith("'") || word.endsWith("'") || word.startsWith("`") || word.endsWith("`");