Skip to content

Function: apply() ​

ts
function apply(game, action): Result;

Calls the function an action names. A malformed action is refused with 'invalid-action'.

Parameters ​

ParameterType
gameGame
actionAction

Returns ​

Result

Released under the MIT License.