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.
- the Method Chaining wikipedia page
- Have a question about Method Chaining not answered here? Email me and let me know how I can help.
"hello world".toString().substr(0, 1).length
Last updated August 9th, 2020