UNPKG

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.

20 lines (19 loc) 476 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createAsyncProxy = void 0; const createAsyncProxy = (asyncCallback) => { let promise = null; return async () => { if (promise) { return promise; } try { promise = asyncCallback(); return await promise; } finally { promise = null; } }; }; exports.createAsyncProxy = createAsyncProxy;