Skip to content

isObject JavaScriptDart

Check whether the given data is of type Object. Returns false for other data types including Array.

Parameters

  • data::any

Returns

boolean

Examples

javascript
isObject([1, 2, 3]); // Returns false
isObject({ a: 1, b: 2 }); // Returns true

Released under the MIT License