<commit_before># compose-props
[recompose](https://github.com/acdlite/recompose) minus react dependency... ish

[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)
[![build status](https://img.shields.io/travis/Craftsy/compose-props/master.svg?style=flat-square)](https://travis-ci.org/Craftsy/compose-props)

Each compose-props method has the same argument signature of `(state, props)` and should return a new 'props' object.

`state` and/or the first argument stays consistent.

####composeProps(...functions)
You can 'compose' `compose-props` methods using `composeProps`, **but it is not a standard compose function**.

Each function you pass to `composeProps` will be called with `(state, props)` and should return a new 'props' object.

`state` should be considered immutable and will consistently be the first argument to every function composed with `composeProps`.

`composeProps` calls each passed function from left to right(top to bottom) with the same `state` but with the previous functions returned 'props' object as the new `props`.

**NOTE** If the value `null` is returned from any of the composed functions, the `composeProps` will short circuit, and return an empty object`{}`.

#####React Native<commit_msg>add npm version badge<commit_after># compose-props
[recompose](https://github.com/acdlite/recompose) minus react dependency... ish

[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)
[![build status](https://img.shields.io/travis/Craftsy/compose-props/master.svg?style=flat-square)](https://travis-ci.org/Craftsy/compose-props) [![npm version](https://img.shields.io/npm/v/compose-props.svg?style=flat-square)](https://www.npmjs.com/package/compose-props)

Each compose-props method has the same argument signature of `(state, props)` and should return a new 'props' object.

`state` and/or the first argument stays consistent.

####composeProps(...functions)
You can 'compose' `compose-props` methods using `composeProps`, **but it is not a standard compose function**.

Each function you pass to `composeProps` will be called with `(state, props)` and should return a new 'props' object.

`state` should be considered immutable and will consistently be the first argument to every function composed with `composeProps`.

`composeProps` calls each passed function from left to right(top to bottom) with the same `state` but with the previous functions returned 'props' object as the new `props`.

**NOTE** If the value `null` is returned from any of the composed functions, the `composeProps` will short circuit, and return an empty object`{}`.

#####React Native
{'fraction_non_alphanumeric': 0.1264705882352941, 'fraction_numerical': 0.0014705882352941176, 'mean_word_length': 5.3426573426573425, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, 'lorem ipsum': 0, 'www.': 1, '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': '3447789', 'n_tokens_mistral': 808, 'n_tokens_neox': 781, 'n_words': 284}