Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mateusmaso/underscore.catenate

Underscore helper for merging functions with same context
https://github.com/mateusmaso/underscore.catenate

function-wrapper javascript underscore

Last synced: 11 days ago
JSON representation

Underscore helper for merging functions with same context

Awesome Lists containing this project

README

        

underscore.catenate [![Build Status](https://travis-ci.org/mateusmaso/underscore.catenate.svg?branch=master)](https://travis-ci.org/mateusmaso/underscore.catenate)
===================

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

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

## Examples

```javascript
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.