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