'use strict';

/**
* Tests if a value is an array.
*
* @param {*} value - value to test
* @returns {boolean} boolean indicating whether value is an array
*
* @example
* var v = isArray( [] );
* // returns true
* @example
* var v = isArray( {} );
* // returns false
*/
function isArray( value ) {
	return Object.prototype.toString.call( value ) === '[object Array]';
} // end FUNCTION isArray()


// EXPORTS //

module.exports = Array.isArray || isArray;

'use strict';

// MODULES //

var nativeClass = require( '@stdlib/utils/native-class' );


// IS ARRAY //

/**
* Tests if a value is an array.
*
* @param {*} value - value to test
* @returns {boolean} boolean indicating whether value is an array
*
* @example
* var v = isArray( [] );
* // returns true
* @example
* var v = isArray( {} );
* // returns false
*/
function isArray( value ) {
	return ( nativeClass( value ) === '[object Array]' );
} // end FUNCTION isArray()


// EXPORTS //

module.exports = Array.isArray || isArray;

Use utility to get a value's native class
Use utility to get a value's native class
