Test if an input value is a supported font weight.
var isFontWeight = require( '@stdlib/plot/vega/base/assert/is-font-weight' );Tests if an input value is a supported font weight.
var bool = isFontWeight( 'normal' );
// returns true
bool = isFontWeight( 'foo' );
// returns falsevar isFontWeight = require( '@stdlib/plot/vega/base/assert/is-font-weight' );
var bool = isFontWeight( 'normal' );
// returns true
bool = isFontWeight( 'bold' );
// returns true
bool = isFontWeight( '' );
// returns false
bool = isFontWeight( 'foo' );
// returns false