source: trip-planner-front/node_modules/isobject/README.md@ 1ad8e64

Last change on this file since 1ad8e64 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 3.9 KB
RevLine 
[6a3a178]1# isobject [![NPM version](https://img.shields.io/npm/v/isobject.svg?style=flat)](https://www.npmjs.com/package/isobject) [![NPM monthly downloads](https://img.shields.io/npm/dm/isobject.svg?style=flat)](https://npmjs.org/package/isobject) [![NPM total downloads](https://img.shields.io/npm/dt/isobject.svg?style=flat)](https://npmjs.org/package/isobject) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/isobject.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/isobject)
2
3> Returns true if the value is an object and not an array or null.
4
5## Install
6
7Install with [npm](https://www.npmjs.com/):
8
9```sh
10$ npm install --save isobject
11```
12
13Install with [yarn](https://yarnpkg.com):
14
15```sh
16$ yarn add isobject
17```
18
19Use [is-plain-object](https://github.com/jonschlinkert/is-plain-object) if you want only objects that are created by the `Object` constructor.
20
21## Install
22
23Install with [npm](https://www.npmjs.com/):
24
25```sh
26$ npm install isobject
27```
28Install with [bower](https://bower.io/)
29
30```sh
31$ bower install isobject
32```
33
34## Usage
35
36```js
37var isObject = require('isobject');
38```
39
40**True**
41
42All of the following return `true`:
43
44```js
45isObject({});
46isObject(Object.create({}));
47isObject(Object.create(Object.prototype));
48isObject(Object.create(null));
49isObject({});
50isObject(new Foo);
51isObject(/foo/);
52```
53
54**False**
55
56All of the following return `false`:
57
58```js
59isObject();
60isObject(function () {});
61isObject(1);
62isObject([]);
63isObject(undefined);
64isObject(null);
65```
66
67## About
68
69### Related projects
70
71* [extend-shallow](https://www.npmjs.com/package/extend-shallow): Extend an object with the properties of additional objects. node.js/javascript util. | [homepage](https://github.com/jonschlinkert/extend-shallow "Extend an object with the properties of additional objects. node.js/javascript util.")
72* [is-plain-object](https://www.npmjs.com/package/is-plain-object): Returns true if an object was created by the `Object` constructor. | [homepage](https://github.com/jonschlinkert/is-plain-object "Returns true if an object was created by the `Object` constructor.")
73* [kind-of](https://www.npmjs.com/package/kind-of): Get the native type of a value. | [homepage](https://github.com/jonschlinkert/kind-of "Get the native type of a value.")
74* [merge-deep](https://www.npmjs.com/package/merge-deep): Recursively merge values in a javascript object. | [homepage](https://github.com/jonschlinkert/merge-deep "Recursively merge values in a javascript object.")
75
76### Contributing
77
78Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
79
80### Contributors
81
82| **Commits** | **Contributor** |
83| --- | --- |
84| 29 | [jonschlinkert](https://github.com/jonschlinkert) |
85| 4 | [doowb](https://github.com/doowb) |
86| 1 | [magnudae](https://github.com/magnudae) |
87| 1 | [LeSuisse](https://github.com/LeSuisse) |
88| 1 | [tmcw](https://github.com/tmcw) |
89
90### Building docs
91
92_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_
93
94To generate the readme, run the following command:
95
96```sh
97$ npm install -g verbose/verb#dev verb-generate-readme && verb
98```
99
100### Running tests
101
102Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
103
104```sh
105$ npm install && npm test
106```
107
108### Author
109
110**Jon Schlinkert**
111
112* [github/jonschlinkert](https://github.com/jonschlinkert)
113* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)
114
115### License
116
117Copyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).
118Released under the [MIT License](LICENSE).
119
120***
121
122_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on June 30, 2017._
Note: See TracBrowser for help on using the repository browser.