Skip to content

Commit

Permalink
Bump to 0.0.2 (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
timendez authored Oct 23, 2018
1 parent a5760c7 commit 7758e30
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,19 @@ npm install lomatch
yarn add lomatch
```

## Usage
```javascript
const { LoMatch } = require('lomatch');
let results = LoMatch(input, output, primers);
console.log(results);
```
**input** - an object, array, or string that you currently have
**output** - the desired format you want your data in
**primers** - an array of values that you think will help LoMatch figure out a result
**results** - an array of objects containing a `func` and `args` that when in combination with your input can get you to your output

Examples below

## Arrays
### Example
I have a starting array of `[1, 2, 3, 2, 2]`, and I want a final array of `[1, 3]`. I don't know which Lodash functions I need to use in order to get there, so I'll use LoMatch!
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lomatch",
"version": "0.0.1",
"version": "0.0.2",
"description": "A tool that figures out what LoDash function you should use given an input, desired output, and predicate.",
"main": "lomatch.js",
"scripts": {
Expand Down

0 comments on commit 7758e30

Please sign in to comment.