Skip to content

About

Underscore helper for merging functions with same context

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

Repository files navigation

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

  • Merge 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.

About

Underscore helper for merging functions with same context

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages