# lil_

> A li'l utility library

Latest version **0.0.8** (published 2013-04-06) · 0 weekly downloads

## Install

```sh
npm install lil_
pnpm add lil_
yarn add lil_
bun add lil_
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.8 |
| Published | 2013-04-06 |
| First published | 2012-11-18 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.8.x |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | August Hovland |
| Maintainers | gushov |

## Links

- npm: https://www.npmjs.com/package/lil_
- Repository: https://github.com/gushov/lil_
- npm.io page: https://npm.io/package/lil_

## Dependencies (1)

- [lilprovider](https://npm.io/package/lilprovider.md) >= 0.0.x

## Recent versions

- 0.0.8 (latest) — 2013-04-06
- 0.0.7 — 2013-01-24
- 0.0.6 — 2013-01-20
- 0.0.5 — 2013-01-15
- 0.0.4 — 2013-01-14
- 0.0.3 — 2012-12-06
- 0.0.2 — 2012-12-05
- 0.0.1 — 2012-11-18

## README

# lil_

A li'l utility library

## Description

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

## Browser usage

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

```javascript
(function () {

  var _ = require('lil_');

  //returns "null"
  _.typeOf(null);

}());
```

## Node usage

Install via npm: `npm install lil_`

```javascript
var _ = require('lil_');

//returns "null"
_.typeOf(null); 
```

## Documentation

### typeOf(thing)

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

### each(thing, iterator, context)

Calls iterator function with each element or property of thing.

### every(thing, iterator, context)

If iterator returns true for each element or property value of thing function returns true otherwise iteration stops and function returns false.

### some(thing iterator, context)

If iterator returns false for element or property value of thing function returns false otherwise iteration stops and function returns true.

### map(thing, mapper, context)

Returns new array or object populated with elements or properties returned by mapper for each element or property in thing.

### withOut(array, value)

Returns copy of array with all elements equal to value removed. 

### walk(target, src, iterator)

walks src object graph and call iterator with src value, object value, proptery name and target parent object

### extend(target, src, [src...])

copy properties of src to target.

### defaults(target, src)

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

### match(object, test)

Returns true if test properties are "===" to object properties.

### pick(target, keys)

Returns copy of target with only properties present in keys.

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

---
_Source: https://npm.io/package/lil_ · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
