isthing

This function determines whether the value passed to this function is a thing or not.

Type instances are also things, so this function returns true for a type instance as well.

This function does not generate an event.

Function

isthing(value)

Arguments

Argument Type Description
value any (required) The value to be tested.

Return value

Returns true is the passed value is a thing else it returns false.

Example

This code shows some return values for isthing():

new_type('A');
[
    isthing( {} ),
    isthing( A{} ),
    isthing( [] ),
];

Return value in JSON format

[
    true,
    true,
    false
]