Skip to content

isObject

isObject(value) → boolean · Type

Returns true if the value is an object (key-value map).

  • value (required): the value to test
utlx
isObject({name: "Alice"})                // true
isObject([1, 2, 3])                      // false (array, not object)
isObject("hello")                        // false
isObject($input)                         // true (root is typically an object)

Released under AGPL-3.0.