scrabble-solver
Version:
Scrabble Solver 2 - Free, open-source, cross-platform, multi-language analysis tool for Scrabble, Scrabble Duel, Super Scrabble, Letter League, Literaki, and Kelimelik. Quickly find the top-scoring words using the given board and tiles.
14 lines (13 loc) • 503 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isCellJson = void 0;
const isObject_1 = require("./isObject");
const TileJson_1 = require("./TileJson");
const isCellJson = (value) => {
return ((0, isObject_1.isObject)(value) &&
typeof value.isEmpty === 'boolean' &&
((0, TileJson_1.isTileJson)(value.tile) || value.tile === null) &&
typeof value.x === 'number' &&
typeof value.y === 'number');
};
exports.isCellJson = isCellJson;