Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Filter an array of objects to a specific OS

License

NotificationsYou must be signed in to change notification settings

kevva/os-filter-obj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Filter an array of objects to a specific OS

Install

$ npm install os-filter-obj

Usage

constosFilterObj=require('os-filter-obj');constobjects=[{os:'linux',arch:'x64',foo:'unicorn',bar:'cow'},{os:'darwin',arch:'x64',foo:'unicorn',bar:'cow'},{os:'win32',arch:'x64',foo:'unicorn',bar:'cow'}];osFilterObj(objects);/*[{os: 'linux',arch: 'x64',foo: 'unicorn',bar: 'cow'}];*/

API

osFilterObj(objects)

Returns anArray with the filtered objects.

objects

Type:Array

TheArray to filter.

License

MIT ©Kevin Mårtensson

About

Filter an array of objects to a specific OS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp