This library is an extension for Underscore which allows chaining functions into a single method that executes them in sequence.
- Merge functions.
- underscore.js (>= 1.5.0)
var _ = require('underscore');
_.mixin(require('underscore.catenate'));
var hello = function() {
console.log('hello');
};
var world = function() {
console.log('world');
};
var helloWorld = _.catenate(hello, world);
helloWorld(); // hello world
Copyright (c) 2013-2014 Mateus Maso. Released under an MIT license.