Top "Chaining" questions

Chaining is an object-oriented programming technique where methods return the object on which they were called so that another method may be called on the same object, thus forming a method chain.

Underscore.js _.tap() function what is a method chain?

The Underscore.js documentation explains that the _.tap() function "taps" into a method chain. http://underscorejs.org/#tap I have …

javascript underscore.js chaining method-chaining
How to implement exception chaining in PHP

Constructor for PHP's exception has third parameter, documentation says: $previous: The previous exception used for the exception chaining. But I …

php exception chaining
Python: jQuery-like function chaining?

I couldn't find anything on this subject on Google, so I think I should ask it here: Is it possible …

python function chaining
How to run a promise

I know that't very silly, but how to start a promise chain? I have, for example, var p = new Promise(…

node.js promise chaining
Dynamic AJAX promise chain with jQuery

My AJAX calls are built inside of a for loop. They need to be in order (synchronous). How do I …

javascript jquery ajax promise chaining