ecl-logo Documentation

ObjectQ

ObjectQ[expression]bool

returns True if expression is an object, model, link, or packet of a defined type.

Details

    Input
    Output

Examples

Basic Examples  (5)

Returns True if input is an object of a defined type:

Returns False if input is an object of a type which is not defined:

Matches Links:

Matches packets:

An empty association is not a packet because it is missing the Type key:

Additional Examples  (6)

Returns True if input is an object of a defined Model type:

Returns True for an Object with only an ID:

Returns True for a Model with only an ID:

Matches Links to fields:

Matches a Link with a link-id and without a Field:

Matches Links with specific ids: