mwg API
    Preparing search index...

    Function validAttributeValue

    • Whether a value satisfies a declared attribute type. Exported because the check is not only the tag schema's: a hook declares its own attributes (item 321), and a game's [hook] invocations are checked against that declaration by the same rule.

      Parameters

      Returns boolean

      import { validAttributeValue } from '@datamoc/mw_games/mwl';

      console.log(validAttributeValue('yes', 'boolean')); // true