os-filter-obj

WebJar for os-filter-obj

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

os-filter-obj
Последняя версия

Последняя версия

1.0.3
Дата

Дата

Тип

Тип

jar
Описание

Описание

os-filter-obj
WebJar for os-filter-obj
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

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

Скачать os-filter-obj

Как подключить последнюю версию

<!-- 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"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

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

Версии библиотеки

Версия
1.0.3