Package Exports
- os-filter-obj
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 (os-filter-obj) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
os-filter-obj 
Filter an array of objects to a specific OS
Install
$ npm install --save os-filter-obj
Usage
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