Skip to content

Commit

Permalink
feat: Export has method
Browse files Browse the repository at this point in the history
  • Loading branch information
WaldoJeffers committed Aug 18, 2018
1 parent 18bc7ea commit 3cbebe6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ transformer(input) // { fullname: 'James M', drumsticks: 2, occupation: 'drummer

#### description

```
Function: descriptor: Object -> (Function: input: Object -> output: Object)
```Erlang
transform :: Object descriptor => (Object input => Object output)
```

Returns a function which transforms an input object based on the descriptor object you provide it. `transform` is a pure function: it will create a new output object and will not modify the input object.
Expand Down
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import identity from './utils/identity'
import has from './utils/has'
import extend from './extend'
import branch from './transformers/branch'
import map from './transformers/map'
import mapFrom from './transformers/mapFrom'
import transform from './transform'

export { identity, branch, extend, map, mapFrom, transform }
export { identity, branch, extend, map, mapFrom, transform, has }

0 comments on commit 3cbebe6

Please sign in to comment.