Install it with
npm install lamb
Require it in node.js:
var lamb = require"lamb";
It's useful to alias it to have a shorter symbol, like
_, as I did throughout the documentation: it's cleaner and the
lamb object itself can be used as a placeholder argument in partial application.
var _ = require"lamb";
In a browser, simply include the version you want from the
You can find the source map for the minified file in the same folder.
A first version of the API documentation is now online.
Lamb uses semantic versioning and please be aware that, as long as the major version is
bump in the minor version could involve a breaking change in the API.
You can refer to the changelog to see if your code is affected.
Don't know, really.
The story here is that I like to write my own code and, time permitting, to even reinvent the wheel: it's part of my learning process.
This library is only a means for me to gather some utilities I wrote, clean them up a bit and put them together with some new tools to make a documented, reusable package.
Are your wheels rounder?
Not at all, but I do try my best to add better suspension; and you do realise that you're reading a guy talking to himself, don't you?
Why ECMAScript 5?
Because this is simply me tidying up some old code, and will hopefully be my goodbye to ES5 before fully diving into the world of transpilers.
What about ES4 environments?
Are there plans for the future?
Absolutely yes: this isn't a complete work at all, only a first public release.
I need better documentation and examples for starters, and I also want to add a bunch of other functions and concepts into the mix.
See the main header: because it's docile like a lamb.
v0.14.0 - 2015/05/13
v0.13.0 - 2015/05/06
uniquesnow use the "SameValueZero" comparison
v0.12.0 - 2015/04/22
v0.11.0 - 2015/04/17
unionfunction now can work with array-like objects
v0.10.0 - 2015/04/15
unaryas shortcuts for common use cases of
v0.9.0 - 2015/04/10
typeto avoid confusion with the operator
v0.8.0 - 2015/04/03
valuesfunction now picks from all enumerable properties, even inherited
v0.7.0 - 2015/03/25
v0.6.3 - 2015/03/20
v0.6.2 - 2015/03/18