Simulated chaining in JavaScript
Kyle Simpson (aka @getify) has written an excellent post on chaining in JavaScript and how you can take it to the next level. Here is a little excerpt from the original post: Just so we’re all on the same page, “chaining” is this wonderful functional property of languages like JavaScript (which treat a function as a first-class citizen). It essentially amounts to making a function call, and the return value from the function is itself either another callable function, or more often, an object that has functions which are directly callable Check out the article http://blog.getify.com/2010/02/simulated-chaining-in-javascript/
Posted in
Uncategorized
Leave a comment