Package Exports
- @common-utilities/filter-array
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@common-utilities/filter-array) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@common-utilities/filter-array 🧰🧹
FilterArray is a common function a common function that removes deplicate items from an array.
Install
yarn add @common-utilities/filter-array -DFunction
const filterArray = (arr) => arr.filter((item, index, self) => self.indexOf(item) === index)Usage
filterArray(['test', 'test', 'foo', 'bar', 'biz'])
// ['test', 'foo', 'bar', 'biz'])Common Utilities 🧰
No cruft. No bloat. No dependencies.
Simple, typed, functional, documented, and tested javascript utility functions.
View other common utilities.