Test if a value is a plain object.
var isPlainObject = require( '@stdlib/utils/is-plain-object' );
Tests if a value
is a plain object
.
var bool = isPlainObject( {} );
// returns true
bool = isPlainObject( null );
// returns false
Tests if a value
is an array
of plain objects
.
var bool = isPlainObject.isPlainObjectArray( [{}, {}] );
// returns true
bool = isPlainObject.isPlainObjectArray( [{}, null] );
// returns false
var isPlainObject = require( '@stdlib/utils/is-plain-object' );
var bool = isPlainObject( {} );
// returns true
bool = isPlainObject( Object.create( null ) );
// returns true
bool = isPlainObject( [] );
// returns false
bool = isPlainObject( null );
// returns false