UNPKG

scrabble-solver

Version:

Scrabble Solver 2 - Free, open-source, cross-platform, multi-language analysis tool for Scrabble, Scrabble Duel, Super Scrabble, Letter League, Crossplay, Literaki, and Kelimelik. Quickly find the top-scoring words using the given board and tiles.

10 lines (9 loc) 178 B
export const isRegExp = (value: string): boolean => { try { // eslint-disable-next-line no-new new RegExp(value); return true; } catch { return false; } };