underscore.catenate

0.1.1 • Public • Published

underscore.catenate Build Status

This library is an extension for Underscore which allows chaining functions into a single method that executes them in sequence.

Features

  • Catenate merged functions.

Dependencies

  • underscore.js (>= 1.5.0)

Node

var _ = require('underscore');
_.mixin(require('underscore.catenate'));

Examples

var hello = function() {
  console.log('hello');
};
 
var world = function() {
  console.log('world');
};
 
var helloWorld = _.catenate(hello, world);
helloWorld(); // hello world

License

Copyright (c) 2013-2014 Mateus Maso. Released under an MIT license.

/underscore.catenate/

    Package Sidebar

    Install

    npm i underscore.catenate

    Weekly Downloads

    92

    Version

    0.1.1

    License

    none

    Last publish

    Collaborators

    • mateusmaso