- Timestamp:
- 11/25/21 22:08:24 (3 years ago)
- Branches:
- master
- Children:
- 8d391a1
- Parents:
- 59329aa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner-front/node_modules/is-extendable/README.md
r59329aa re29cc2e 1 # is-extendable [![NPM version](https:// img.shields.io/npm/v/is-extendable.svg?style=flat)](https://www.npmjs.com/package/is-extendable) [![NPM monthly downloads](https://img.shields.io/npm/dm/is-extendable.svg?style=flat)](https://npmjs.org/package/is-extendable) [![NPM total downloads](https://img.shields.io/npm/dt/is-extendable.svg?style=flat)](https://npmjs.org/package/is-extendable) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/is-extendable.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/is-extendable)1 # is-extendable [![NPM version](https://badge.fury.io/js/is-extendable.svg)](http://badge.fury.io/js/is-extendable) 2 2 3 > Returns true if a value is a plain object, array or function.3 > Returns true if a value is any of the object types: array, regexp, plain object, function or date. This is useful for determining if a value can be extended, e.g. "can the value have keys?" 4 4 5 5 ## Install 6 6 7 Install with [npm](https://www.npmjs.com/) :7 Install with [npm](https://www.npmjs.com/) 8 8 9 9 ```sh 10 $ npm i nstall --save is-extendable10 $ npm i is-extendable --save 11 11 ``` 12 12 … … 19 19 Returns true if the value is any of the following: 20 20 21 * array 22 * plain object 23 * function 21 * `array` 22 * `regexp` 23 * `plain object` 24 * `function` 25 * `date` 26 * `error` 24 27 25 28 ## Notes … … 28 31 29 32 * the value is not a primitive, or 30 * that the object is a plain object, function or array33 * that the object is an `object`, `function` 31 34 32 35 Also note that an `extendable` object is not the same as an [extensible object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isExtensible), which is one that (in es6) is not sealed, frozen, or marked as non-extensible using `preventExtensions`. 33 36 34 ## Rel ease history37 ## Related projects 35 38 36 ### v1.0.0 - 2017/07/20 39 * [assign-deep](https://github.com/jonschlinkert/assign-deep): Deeply assign the enumerable properties of source objects to a destination object. 40 * [extend-shallow](https://github.com/jonschlinkert/extend-shallow): Extend an object with the properties of additional objects. node.js/javascript util. 41 * [isobject](https://github.com/jonschlinkert/isobject): Returns true if the value is an object and not an array or null. 42 * [is-plain-object](https://github.com/jonschlinkert/is-plain-object): Returns true if an object was created by the `Object` constructor. 43 * [is-equal-shallow](https://github.com/jonschlinkert/is-equal-shallow): Does a shallow comparison of two objects, returning false if the keys or values differ. 44 * [kind-of](https://github.com/jonschlinkert/kind-of): Get the native type of a value. 37 45 38 **Breaking changes** 46 ## Running tests 39 47 40 * No longer considers date, regex or error objects to be extendable 41 42 ## About 43 44 ### Related projects 45 46 * [assign-deep](https://www.npmjs.com/package/assign-deep): Deeply assign the enumerable properties and/or es6 Symbol properies of source objects to the target… [more](https://github.com/jonschlinkert/assign-deep) | [homepage](https://github.com/jonschlinkert/assign-deep "Deeply assign the enumerable properties and/or es6 Symbol properies of source objects to the target (first) object.") 47 * [is-equal-shallow](https://www.npmjs.com/package/is-equal-shallow): Does a shallow comparison of two objects, returning false if the keys or values differ. | [homepage](https://github.com/jonschlinkert/is-equal-shallow "Does a shallow comparison of two objects, returning false if the keys or values differ.") 48 * [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.") 49 * [isobject](https://www.npmjs.com/package/isobject): Returns true if the value is an object and not an array or null. | [homepage](https://github.com/jonschlinkert/isobject "Returns true if the value is an object and not an array or null.") 50 * [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.") 51 52 ### Contributing 53 54 Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). 55 56 ### Building docs 57 58 _(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.)_ 59 60 To generate the readme, run the following command: 48 Install dev dependencies: 61 49 62 50 ```sh 63 $ npm i nstall -g verbose/verb#dev verb-generate-readme && verb51 $ npm i -d && npm test 64 52 ``` 65 53 66 ## # Running tests54 ## Contributing 67 55 68 Running 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: 56 Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/is-extendable/issues/new) 69 57 70 ```sh 71 $ npm install && npm test 72 ``` 73 74 ### Author 58 ## Author 75 59 76 60 **Jon Schlinkert** 77 61 78 *[github/jonschlinkert](https://github.com/jonschlinkert)79 * [twitter/jonschlinkert](https://twitter.com/jonschlinkert)62 + [github/jonschlinkert](https://github.com/jonschlinkert) 63 + [twitter/jonschlinkert](http://twitter.com/jonschlinkert) 80 64 81 ## #License65 ## License 82 66 83 Copyright © 201 7, [Jon Schlinkert](https://github.com/jonschlinkert).84 Released under the [MIT License](LICENSE).67 Copyright © 2015 Jon Schlinkert 68 Released under the MIT license. 85 69 86 70 *** 87 71 88 _This file was generated by [verb- generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on July 20, 2017._72 _This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on July 04, 2015._
Note:
See TracChangeset
for help on using the changeset viewer.