michaelp0730
1/19/2015 - 6:35 PM

If Value is Array

Douglas Crockford

if (my_value && typeof my_value === 'object' && typeof my_value.length === 'number' &&
	!(my_value.propertyIsEnumerable('length')) {
	// my_value is truly an array!	
}