Method Chaining is an actively used design pattern. Method chaining, also known as named parameter idiom, is a common syntax for invoking multiple method calls in object-oriented programming languages. Each method returns an object, allowing the calls to be chained together in a single statement without requiring variables to store the intermediate results.

?Years Old

Languages with Method Chaining include javascript

Example from javascript:

"hello world".toString().substr(0, 1).length

Last updated August 9th, 2020

Edit Method Chaining on GitHub