Skip to content

Commit

Permalink
add usage with custom config section
Browse files Browse the repository at this point in the history
  • Loading branch information
schnittstabil committed Oct 19, 2019
1 parent 00e489e commit 5437af4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@ mergeOptions({[Symbol.for('key')]: 0}, {[Symbol.for('key')]: 42})
//=> {Symbol(key): 42}
```

### Usage with custom config

```js
const mergeOptions = require('merge-options').bind({ignoreUndefined: true});

mergeOptions({foo: 'bar'}, {foo: undefined})
//=> {foo: 'bar'}
```

## API

### mergeOptions(option1, ...options)<br/>mergeOptions.call(config, option1, ...options)<br/>mergeOptions.apply(config, [option1, ...options])
Expand Down

0 comments on commit 5437af4

Please sign in to comment.