An even more simple library for function creation (did I mention it's very fast?)
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
itself.js
package.json

README.md

itself

A damn simple library to help you write shorter functions:

Instead of this:

var oddTaskNames = tasks
        .filter(function(task) { return task.number % 2 == 0 }).map
        .map(function(task) { return task.name })

Or this using it.js

var It = require('it.js')
var oddTaskNames = tasks
        .filter(It.get('number')['%'](2)['=='](0))
        .map(It.get('name'))

You can use this module, itself!

var itself = its = require('itself'), its
var oddTaskNames = tasks
        .filter(its('.number % 2 == 0'))
        .map(its('.name'))