Test if an input value is an compare instance.
var isCompare = require( '@stdlib/plot/vega/base/assert/is-compare' );Tests if an input value is an compare instance.
var Compare = require( '@stdlib/plot/vega/mark/compare' );
var v = new Compare({
'field': 'amount'
});
var bool = isCompare( v );
// returns true
bool = isCompare( 'foo' );
// returns falsevar Compare = require( '@stdlib/plot/vega/mark/compare' );
var isCompare = require( '@stdlib/plot/vega/base/assert/is-compare' );
var v = new Compare({
'field': 'amount'
});
var bool = isCompare( v );
// returns true
bool = isCompare( {} );
// returns false
bool = isCompare( 'foo' );
// returns false