YouTip LogoYouTip

Misc Deferred State

# jQuery deferred.state() Method [![Image 3: jQuery Misc Methods](#)jQuery Misc Methods](#) * * * ## Definition and Usage The deferred.state() function is used to determine the current state of a Deferred object. **Note:** The deferred.state() method returns a string representing the current state of the Deferred object. A Deferred object can be in one of three states: * **"pending" :** The Deferred object is not yet in a completed state. * **"resolved" :** The Deferred object is in the resolved state, meaning the object's deferred.resolve() or deferred.resolveWith() has been called and the doneCallbacks have been called (or are in the process of being called). * **"rejected" :** The Deferred object is in the rejected state, meaning the object's deferred.reject() or deferred.rejectWith() has been called and the failCallbacks have been called (or are in the process of being called). * * * ## Syntax This method does not accept any parameters. deferred.state() * * jQuery Misc Methods](#)
← Misc PromiseMisc Deferred Resolve β†’