Changeset e29cc2e for trip-planner-front/node_modules/is-extendable
- Timestamp:
- 11/25/21 22:08:24 (3 years ago)
- Branches:
- master
- Children:
- 8d391a1
- Parents:
- 59329aa
- Location:
- trip-planner-front/node_modules/is-extendable
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner-front/node_modules/is-extendable/LICENSE
r59329aa re29cc2e 1 1 The MIT License (MIT) 2 2 3 Copyright (c) 2015 -2017, Jon Schlinkert.3 Copyright (c) 2015, Jon Schlinkert. 4 4 5 5 Permission is hereby granted, free of charge, to any person obtaining a copy -
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._ -
trip-planner-front/node_modules/is-extendable/index.js
r59329aa re29cc2e 2 2 * is-extendable <https://github.com/jonschlinkert/is-extendable> 3 3 * 4 * Copyright (c) 2015 -2017, Jon Schlinkert.5 * Released under the MIT License.4 * Copyright (c) 2015, Jon Schlinkert. 5 * Licensed under the MIT License. 6 6 */ 7 7 8 8 'use strict'; 9 9 10 var isPlainObject = require('is-plain-object');11 12 10 module.exports = function isExtendable(val) { 13 return isPlainObject(val) || typeof val === 'function' || Array.isArray(val); 11 return typeof val !== 'undefined' && val !== null 12 && (typeof val === 'object' || typeof val === 'function'); 14 13 }; -
trip-planner-front/node_modules/is-extendable/package.json
r59329aa re29cc2e 1 1 { 2 "_args": [ 3 [ 4 "is-extendable@1.0.1", 5 "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front" 6 ] 7 ], 8 "_development": true, 9 "_from": "is-extendable@1.0.1", 10 "_id": "is-extendable@1.0.1", 2 "_from": "is-extendable@^0.1.0", 3 "_id": "is-extendable@0.1.1", 11 4 "_inBundle": false, 12 "_integrity": "sha 512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==",5 "_integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", 13 6 "_location": "/is-extendable", 14 7 "_phantomChildren": {}, 15 8 "_requested": { 16 "type": " version",9 "type": "range", 17 10 "registry": true, 18 "raw": "is-extendable@ 1.0.1",11 "raw": "is-extendable@^0.1.0", 19 12 "name": "is-extendable", 20 13 "escapedName": "is-extendable", 21 "rawSpec": " 1.0.1",14 "rawSpec": "^0.1.0", 22 15 "saveSpec": null, 23 "fetchSpec": " 1.0.1"16 "fetchSpec": "^0.1.0" 24 17 }, 25 18 "_requiredBy": [ 26 "/extend-shallow", 27 "/mixin-deep" 19 "/expand-brackets/extend-shallow", 20 "/extglob/extend-shallow", 21 "/http-proxy-middleware/braces/extend-shallow", 22 "/http-proxy-middleware/fill-range/extend-shallow", 23 "/set-value", 24 "/set-value/extend-shallow", 25 "/snapdragon/extend-shallow", 26 "/union-value", 27 "/webpack-dev-server/braces/extend-shallow", 28 "/webpack-dev-server/fill-range/extend-shallow" 28 29 ], 29 "_resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", 30 "_spec": "1.0.1", 31 "_where": "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front", 30 "_resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", 31 "_shasum": "62b110e289a471418e3ec36a617d472e301dfc89", 32 "_spec": "is-extendable@^0.1.0", 33 "_where": "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front\\node_modules\\webpack-dev-server\\node_modules\\braces\\node_modules\\extend-shallow", 32 34 "author": { 33 35 "name": "Jon Schlinkert", … … 37 39 "url": "https://github.com/jonschlinkert/is-extendable/issues" 38 40 }, 39 "dependencies": { 40 "is-plain-object": "^2.0.4" 41 }, 42 "description": "Returns true if a value is a plain object, array or function.", 41 "bundleDependencies": false, 42 "deprecated": false, 43 "description": "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?\"", 43 44 "devDependencies": { 44 "gulp-format-md": "^1.0.0", 45 "mocha": "^3.4.2" 45 "mocha": "*" 46 46 }, 47 47 "engines": { … … 49 49 }, 50 50 "files": [ 51 "index.js", 52 "index.d.ts" 51 "index.js" 53 52 ], 54 53 "homepage": "https://github.com/jonschlinkert/is-extendable", … … 59 58 "date", 60 59 "extend", 61 "extendable",62 60 "extensible", 63 61 "function", … … 77 75 "test": "mocha" 78 76 }, 79 "types": "index.d.ts", 80 "verb": { 77 "verbiage": { 81 78 "related": { 82 79 "list": [ 83 "assign-deep", 80 "isobject", 81 "is-plain-object", 82 "kind-of", 83 "is-extendable", 84 84 "is-equal-shallow", 85 "is-plain-object", 86 "isobject", 87 "kind-of" 85 "extend-shallow", 86 "assign-deep" 88 87 ] 89 },90 "toc": false,91 "layout": "default",92 "tasks": [93 "readme"94 ],95 "plugins": [96 "gulp-format-md"97 ],98 "lint": {99 "reflinks": true100 88 } 101 89 }, 102 "version": " 1.0.1"90 "version": "0.1.1" 103 91 }
Note:
See TracChangeset
for help on using the changeset viewer.