lil_

A li'l utility library

lil_

A li'l utility library

lil_ is where I keep all the utility functions that I use in my other li'l modules.

load dist/lil_.js or dist/lil_.min.js in you browser and call it like this:

(function () {
 
  var _ = require('lil_');
  _.typeOf(sixpack);
 
}());

Install via npm: npm install lil_

var _ = require('lil_');
_.typeOf(sixpack); 

Returns name of thing corresponding with typeof operator except nulls return "null" arrays return "array".

Calls iterator function with each element of array.

If iterator returns true for each element in array function returns true otherwise iteration stops and function returns false.

Returns new array populated with elements returned by mapper for each element in array.

Calls iterator with each proptery of object.

Returns new object with property values set from mapper.

Walk the object graph and copy properties of src to target.

Copy src properties to target if not already present in target.

Returns copy of target with only properties present in keys

Copyright (c) 2012 August Hovland Licensed under the MIT license.