itself
v0.1.0
Published
An even quicker way to create functions!
Downloads
33
Readme
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'))