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