is-plain-obj

WebJar for is-plain-obj

Лицензия

Лицензия

MIT
Группа

Группа

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

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

is-plain-obj
Последняя версия

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

2.1.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

is-plain-obj
WebJar for is-plain-obj
Ссылка на сайт

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

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

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

https://github.com/sindresorhus/is-plain-obj

Скачать is-plain-obj

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

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

Зависимости

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

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

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

is-plain-obj

Check if a value is a plain object

An object is plain if it's created by either {}, new Object(), or Object.create(null).

Install

$ npm install is-plain-obj

Usage

const isPlainObject = require('is-plain-obj');

isPlainObject({foo: 'bar'});
//=> true

isPlainObject(new Object());
//=> true

isPlainObject(Object.create(null));
//=> true

isPlainObject([1, 2, 3]);
//=> false

class Unicorn {}
isPlainObject(new Unicorn());
//=> false

Related

  • is-obj - Check if a value is an object
  • is - Type check values

Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.

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

Версия
2.1.0
2.0.0
1.1.0
1.0.0