notifme/notifme-sdk

View on GitHub
src/util/dedupe.js

Summary

Maintainability
A
0 mins
Test Coverage
/* @flow */

export default function dedupe (array: Array<any>): Array<any> {
  return array.filter((element, position) => array.indexOf(element) === position)
}