Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 486 Bytes

isObject.md

File metadata and controls

14 lines (10 loc) · 486 Bytes

Back to reference

isObject(value)

Checks if value is of type Object and returns true if so, or false if not.

Examples:

let result1 = gmynd.isObject( 270 );            // will return false 
let result2 = gmynd.isObject( "Hello!" );       // will return false 
let result3 = gmynd.isObject( ["a", "b"] );     // will return true (because arrays are also objects) 
let result4 = gmynd.isObject( {x:123, y:456} ); // will return true