okunishinishi/node-arrayfilter

View on GitHub
doc/readme/02.Usage.md.hbs

Summary

Maintainability
Test Coverage
Usage
-------

{{#each vars.usageIndices}}
+ [{{{this}}}](#{{spinalcase this}})
{{/each}}

### Accepting By Type

`arrayfilter.typeAccept(type)` create a function which accepts entries by type matching.

```Javascript
{{{read 'example/example-type-accept.js'}}}
```

### Accepting By Pattern

`arrayfilter.patternAccept(pattern)` create a function which accepts entries by regex (or string) matching.

```Javascript
{{{read 'example/example-pattern-accept.js'}}}
```


### Rejecting Empty Entries

`arrayfilter.emptyReject()` create a function which rejects empty with rejects null, undefined and empty string.

```Javascript
{{{read 'example/example-empty-reject.js'}}}
```

### Rejecting Duplicated Entries

`arrayfilter.duplicateReject()` create a function which rejects empty with rejects null, undefined and empty string.

```Javascript
{{{read 'example/example-duplicate-reject.js'}}}
```

### Rejecting By Pattern

`arrayfilter.patternReject(pattern)` create a function which rejects entries by regex (or string) matching.

```Javascript
{{{read 'example/example-pattern-reject.js'}}}
```

### Rejecting By Type

`arrayfilter.typeReject(type)` create a function which rejects entries by type matching.

```Javascript
{{{read 'example/example-type-reject.js'}}}
```