ocat-lang
Version:
A programming language for the web design and development
14 lines (13 loc) • 410 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isValue = void 0;
const isValue = (word) => !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("`");
exports.isValue = isValue;