UNPKG

@idealic/poker-engine

Version:

Professional poker game engine and hand evaluator with built-in iterator utilities

17 lines 471 B
export function _pipe(value, ...operations) { if (typeof value == 'function') { // @ts-ignore allow spreading return (arg) => _pipe(arg, value, ...operations); } else { let result = value; for (const operation of operations) { result = operation(result); } return result; } } export function pipe(value, ...operations) { return _pipe(value, ...operations); } //# sourceMappingURL=pipe.js.map