File: unique.md

package info (click to toggle)
node-rollup-plugin-node-polyfills 0.2.1%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,564 kB
  • sloc: javascript: 29,580; makefile: 2
file content (11 lines) | stat: -rw-r--r-- 307 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
# pull-stream/throughs/unique

## usage

### `unique = require('pull-stream/throughs/unique')`

### `unique(prop)`

Filter items that have a repeated value for `prop()`,
by default, `prop = function (it) {return it }`, if prop is a string,
it will filter nodes which have repeated values for that property.