This function determines whether the provided value is a thing or not.
This function does not generate a change.
is_thing(value)
Argument | Type | Description |
---|---|---|
value | any (required) | The value to be tested. |
Returns true
if the given value is a thing, else it returns false
.
This code shows some return values for is_thing():
new_type('A');
[
is_thing( {} ),
is_thing( A{} ),
is_thing( [] ),
];
Return value in JSON format
[
true,
true,
false
]