can.isDeferred
Check if an object is a Deferred.
can.isDeferred(subject)
Parameters
-
subject
{*}
The object to check.
Returns
{Boolean}
Whether subject is a Deferred.
Check if an object is a Deferred.
{*}
The object to check.
{Boolean}
Whether subject is a Deferred.
can.isDeferred
returns if an object is an instance of can.Deferred.Example
Convert any value to a Deferred: