os-filter-obj

WebJar for os-filter-obj

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

os-filter-obj
Last Version

Last Version

1.0.3
Release Date

Release Date

Type

Type

jar
Description

Description

os-filter-obj
WebJar for os-filter-obj
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/kevva/os-filter-obj

Download os-filter-obj

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/os-filter-obj/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>os-filter-obj</artifactId>
    <version>1.0.3</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/os-filter-obj/
implementation 'org.webjars.npm:os-filter-obj:1.0.3'
// https://jarcasting.com/artifacts/org.webjars.npm/os-filter-obj/
implementation ("org.webjars.npm:os-filter-obj:1.0.3")
'org.webjars.npm:os-filter-obj:jar:1.0.3'
<dependency org="org.webjars.npm" name="os-filter-obj" rev="1.0.3">
  <artifact name="os-filter-obj" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='os-filter-obj', version='1.0.3')
)
libraryDependencies += "org.webjars.npm" % "os-filter-obj" % "1.0.3"
[org.webjars.npm/os-filter-obj "1.0.3"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

os-filter-obj Build Status

Filter an array of objects to a specific OS

Install

$ npm install os-filter-obj

Usage

const osFilterObj = require('os-filter-obj');

const objects = [{
	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 an Array with the filtered objects.

objects

Type: Array

The Array to filter.

License

MIT © Kevin Mårtensson

Versions

Version
1.0.3