Underscore.JS - Chaining



Underscore.JS has methods to create a chain of methods and then retrive their effective result. This chapter discusses them in detail.

Underscore.JS provides various utility methods as listed below −

Sr.No. Method & Syntax
1 chain

_.chain(object)

2 value

_.chain(obj).value()

Advertisements