Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/mateusmaso/underscore.catenate
- Owner: mateusmaso
- License: mit
- Created: 2013-10-05T23:49:33.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-12-03T01:48:06.000Z (almost 10 years ago)
- Last Synced: 2024-10-06T04:23:01.034Z (about 1 month ago)
- Topics: function-wrapper, javascript, underscore
- Language: JavaScript
- Homepage:
- Size: 176 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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.