Skip to content

Latest commit

 

History

History
119 lines (69 loc) · 2.71 KB

File metadata and controls

119 lines (69 loc) · 2.71 KB

isFontWeight

Test if an input value is a supported font weight.

Usage

var isFontWeight = require( '@stdlib/plot/vega/base/assert/is-font-weight' );

isFontWeight( value )

Tests if an input value is a supported font weight.

var bool = isFontWeight( 'normal' );
// returns true

bool = isFontWeight( 'foo' );
// returns false

Examples

var 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