Languages Features Calendar CSV Lists Blog About Sponsor Add Language
GitHub icon

Method Chaining

Method Chaining

Method Chaining is a feature.

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.

Languages with Method Chaining include JavaScript

Example from JavaScript:
"hello world".toString().substr(0, 1).length
map-functions-feature.html 路 method-chaining-feature.html 路 methods-feature.html

View source

PLDB - Build the next great programming language 路 v2022 Day 33 Docs Build Acknowledgements Traffic Today Traffic Trends Mirrors GitHub