<commit_before>object-loops [![Build Status](https://travis-ci.org/tjmehta/object-loops.svg)](https://travis-ci.org/tjmehta/object-loops)
============

Functional methods like forEach, map, filter, and other Array methods for Objects in javascript

# Installation

`npm install object-loops`

# Index

[chain](https://github.com/tjmehta/object-loops#usage)

[every](https://github.com/tjmehta/object-loops#every)

[inverse](https://github.com/tjmehta/object-loops#inverse)

[filter](https://github.com/tjmehta/object-loops#filter)

[findKey](https://github.com/tjmehta/object-loops#findKey)

[find](https://github.com/tjmehta/object-loops#find)

[forEach](https://github.com/tjmehta/object-loops#forEach)

[keys](https://github.com/tjmehta/object-loops#keys)

[keysIn](https://github.com/tjmehta/object-loops#keysIn)

[mapKeys](https://github.com/tjmehta/object-loops#mapKeys)

[map](https://github.com/tjmehta/object-loops#map)

[reduce](https://github.com/tjmehta/object-loops#reduce)

[some](https://github.com/tjmehta/object-loops#some)

[values](https://github.com/tjmehta/object-loops#values)

[valuesIn](https://github.com/tjmehta/object-loops#valuesIn)

# Usage

#### You can require each method individually `object-loops/<loop>`
* Most efficient for browser bundling. Only bundles what you use.
```js
var filter = require('object-loops/filter')
var forEach = require('object-loops/for-each')
var mapKeys = require('object-loops/map-keys')
var map = require('object-loops/map')
var reduce = require('object-loops/reduce')
//... and more
// usage
forEach({ x:10, y: 20 }, callback)
filter({ x:10, y: 20 }, callback)
mapKeys({ x:10, y: 20 }, callback)
map({ x:10, y: 20 }, callback)
reduce({ x:10, y: 20 }, callback)
```

#### If you want to chain multiple object-loops use `object-loops/chain`
* Not efficient for browser bundling. Bundles all object-loops, even those not used.
```js
var chain = require('object-loops/chain')
chain({ x:10, y: 20 })
  .filter(callback)<commit_msg>Readme: fix TOC links<commit_after>object-loops [![Build Status](https://travis-ci.org/tjmehta/object-loops.svg)](https://travis-ci.org/tjmehta/object-loops)
============

Functional methods like forEach, map, filter, and other Array methods for Objects in javascript

# Installation

`npm install object-loops`

# Index

[chain](https://github.com/tjmehta/object-loops#usage)

[every](https://github.com/tjmehta/object-loops#every)

[inverse](https://github.com/tjmehta/object-loops#inverse)

[filter](https://github.com/tjmehta/object-loops#filter)

[findKey](https://github.com/tjmehta/object-loops#findkey)

[find](https://github.com/tjmehta/object-loops#find)

[forEach](https://github.com/tjmehta/object-loops#foreach)

[keys](https://github.com/tjmehta/object-loops#keys)

[keysIn](https://github.com/tjmehta/object-loops#keysin)

[mapKeys](https://github.com/tjmehta/object-loops#mapkeys)

[map](https://github.com/tjmehta/object-loops#map)

[reduce](https://github.com/tjmehta/object-loops#reduce)

[some](https://github.com/tjmehta/object-loops#some)

[values](https://github.com/tjmehta/object-loops#values)

[valuesIn](https://github.com/tjmehta/object-loops#valuesin)

# Usage

#### You can require each method individually `object-loops/<loop>`
* Most efficient for browser bundling. Only bundles what you use.
```js
var filter = require('object-loops/filter')
var forEach = require('object-loops/for-each')
var mapKeys = require('object-loops/map-keys')
var map = require('object-loops/map')
var reduce = require('object-loops/reduce')
//... and more
// usage
forEach({ x:10, y: 20 }, callback)
filter({ x:10, y: 20 }, callback)
mapKeys({ x:10, y: 20 }, callback)
map({ x:10, y: 20 }, callback)
reduce({ x:10, y: 20 }, callback)
```

#### If you want to chain multiple object-loops use `object-loops/chain`
* Not efficient for browser bundling. Bundles all object-loops, even those not used.
```js
var chain = require('object-loops/chain')
chain({ x:10, y: 20 })
  .filter(callback)
{'fraction_non_alphanumeric': 0.18489713998996488, 'fraction_numerical': 0.012042147516307075, 'mean_word_length': 5.3085443037974684, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 34, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3242479', 'n_tokens_mistral': 1537, 'n_tokens_neox': 1443, 'n_words': 260}