preact-material-components
Version:
preact wrapper for "Material Components for the web"
37 lines (27 loc) • 593 B
Markdown
# os-filter-obj [](https://travis-ci.org/kevva/os-filter-obj)
> Filter an array of objects to a specific OS
## Install
```sh
$ npm install --save os-filter-obj
```
## Usage
```js
var osFilterObj = require('os-filter-obj');
var arr = [{
foo: 'linux-x64',
os: 'linux',
arch: 'x64'
}, {
foo: 'darwin-x64',
os: 'darwin',
arch: 'x64'
},{
foo: 'win32-x64',
os: 'win32',
arch: 'x64'
}];
osFilterObj(arr);
//=> [{ foo: 'linux-x64' }];
```
## License
MIT © [Kevin Mårtensson](https://github.com/kevva)