{ "_id": "is-extendable", "_rev": "5-5dc487fe60ad34f7ffe3f68d9e0947f4", "name": "is-extendable", "description": "Returns true if a value is a plain object, array or function.", "dist-tags": { "latest": "1.0.1" }, "versions": { "0.1.0": { "name": "is-extendable", "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?\"", "version": "0.1.0", "homepage": "https://github.com/jonschlinkert/is-extendable", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "repository": { "type": "git", "url": "git+https://github.com/jonschlinkert/is-extendable.git" }, "bugs": { "url": "https://github.com/jonschlinkert/is-extendable/issues" }, "license": "MIT", "files": [ "index.js" ], "main": "index.js", "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, "devDependencies": { "mocha": "*" }, "keywords": [ "array", "assign", "check", "date", "extend", "extensible", "function", "is", "object", "regex", "test" ], "_id": "is-extendable@0.1.0", "_shasum": "4957422f394effab3f0573555a1aa761c0171832", "_from": ".", "_npmVersion": "2.10.1", "_nodeVersion": "0.12.4", "_npmUser": { "name": "jonschlinkert", "email": "github@sellside.com" }, "maintainers": [ { "name": "jonschlinkert", "email": "github@sellside.com" } ], "dist": { "shasum": "4957422f394effab3f0573555a1aa761c0171832", "tarball": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.0.tgz" }, "directories": {} }, "0.1.1": { "name": "is-extendable", "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?\"", "version": "0.1.1", "homepage": "https://github.com/jonschlinkert/is-extendable", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "repository": { "type": "git", "url": "git+https://github.com/jonschlinkert/is-extendable.git" }, "bugs": { "url": "https://github.com/jonschlinkert/is-extendable/issues" }, "license": "MIT", "files": [ "index.js" ], "main": "index.js", "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, "devDependencies": { "mocha": "*" }, "keywords": [ "array", "assign", "check", "date", "extend", "extensible", "function", "is", "object", "regex", "test" ], "verbiage": { "related": { "list": [ "isobject", "is-plain-object", "kind-of", "is-extendable", "is-equal-shallow", "extend-shallow", "assign-deep" ] } }, "gitHead": "c36a0732e6a76931c6f66c5931d1f3e54fa44380", "_id": "is-extendable@0.1.1", "_shasum": "62b110e289a471418e3ec36a617d472e301dfc89", "_from": ".", "_npmVersion": "2.10.1", "_nodeVersion": "0.12.4", "_npmUser": { "name": "jonschlinkert", "email": "github@sellside.com" }, "maintainers": [ { "name": "jonschlinkert", "email": "github@sellside.com" } ], "dist": { "shasum": "62b110e289a471418e3ec36a617d472e301dfc89", "tarball": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz" }, "directories": {} }, "1.0.0": { "name": "is-extendable", "description": "Returns true if a value is a plain object, array or function.", "version": "1.0.0", "homepage": "https://github.com/jonschlinkert/is-extendable", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "repository": { "type": "git", "url": "git+https://github.com/jonschlinkert/is-extendable.git" }, "bugs": { "url": "https://github.com/jonschlinkert/is-extendable/issues" }, "license": "MIT", "files": [ "index.js" ], "main": "index.js", "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, "dependencies": { "is-plain-object": "^2.0.4" }, "devDependencies": { "gulp-format-md": "^1.0.0", "mocha": "^3.4.2" }, "keywords": [ "array", "assign", "check", "date", "extend", "extendable", "extensible", "function", "is", "object", "regex", "test" ], "verb": { "related": { "list": [ "assign-deep", "is-equal-shallow", "is-plain-object", "isobject", "kind-of" ] }, "toc": false, "layout": "default", "tasks": [ "readme" ], "plugins": [ "gulp-format-md" ], "lint": { "reflinks": true } }, "gitHead": "7e92faeeb30c13e384935b8db2dad3eae232d3ca", "_id": "is-extendable@1.0.0", "_npmVersion": "5.3.0", "_nodeVersion": "7.7.3", "_npmUser": { "name": "jonschlinkert", "email": "github@sellside.com" }, "maintainers": [ { "name": "jonschlinkert", "email": "github@sellside.com" } ], "dist": { "integrity": "sha512-VGiiJgYv3MjU+7d7X7bzrTMOgCDh6NDeJvvHZVh1wqRQvPWQfza8VuZqPydwcH5s0LklmLzWT3fWGwUpit2G0w==", "shasum": "fbfbab79eb9cea1e1e8ac8dbc3a8907b54baa486", "tarball": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.0.tgz" }, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/is-extendable-1.0.0.tgz_1500584847981_0.7659969872329384" }, "directories": {} }, "1.0.1": { "name": "is-extendable", "description": "Returns true if a value is a plain object, array or function.", "version": "1.0.1", "homepage": "https://github.com/jonschlinkert/is-extendable", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "repository": { "type": "git", "url": "git+https://github.com/jonschlinkert/is-extendable.git" }, "bugs": { "url": "https://github.com/jonschlinkert/is-extendable/issues" }, "license": "MIT", "files": [ "index.js", "index.d.ts" ], "main": "index.js", "types": "index.d.ts", "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, "dependencies": { "is-plain-object": "^2.0.4" }, "devDependencies": { "gulp-format-md": "^1.0.0", "mocha": "^3.4.2" }, "keywords": [ "array", "assign", "check", "date", "extend", "extendable", "extensible", "function", "is", "object", "regex", "test" ], "verb": { "related": { "list": [ "assign-deep", "is-equal-shallow", "is-plain-object", "isobject", "kind-of" ] }, "toc": false, "layout": "default", "tasks": [ "readme" ], "plugins": [ "gulp-format-md" ], "lint": { "reflinks": true } }, "gitHead": "230717f6be5be812c16916ec8a745d6252dfa7a5", "_id": "is-extendable@1.0.1", "_npmVersion": "5.3.0", "_nodeVersion": "8.4.0", "_npmUser": { "name": "doowb", "email": "brian.woodward@gmail.com" }, "dist": { "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", "shasum": "a7470f9e426733d81bd81e1155264e3a3507cab4", "tarball": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz" }, "maintainers": [ { "email": "brian.woodward@gmail.com", "name": "doowb" }, { "email": "github@sellside.com", "name": "jonschlinkert" } ], "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/is-extendable-1.0.1.tgz_1505162306211_0.2682281613815576" }, "directories": {} } }, "readme": "# 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)\n\n> Returns true if a value is a plain object, array or function.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save is-extendable\n```\n\n## Usage\n\n```js\nvar isExtendable = require('is-extendable');\n```\n\nReturns true if the value is any of the following:\n\n* array\n* plain object\n* function\n\n## Notes\n\nAll objects in JavaScript can have keys, but it's a pain to check for this, since we ether need to verify that the value is not `null` or `undefined` and:\n\n* the value is not a primitive, or\n* that the object is a plain object, function or array\n\nAlso 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`.\n\n## Release history\n\n### v1.0.0 - 2017/07/20\n\n**Breaking changes**\n\n* No longer considers date, regex or error objects to be extendable\n\n## About\n\n### Related projects\n\n* [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.\")\n* [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.\")\n* [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.\")\n* [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.\")\n* [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.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Building docs\n\n_(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.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n### Running tests\n\nRunning 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:\n\n```sh\n$ npm install && npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on July 20, 2017._", "maintainers": [ { "email": "brian.woodward@gmail.com", "name": "doowb" }, { "email": "github@sellside.com", "name": "jonschlinkert" } ], "time": { "modified": "2017-09-11T20:38:26.333Z", "created": "2015-06-29T03:05:39.042Z", "0.1.0": "2015-06-29T03:05:39.042Z", "0.1.1": "2015-07-04T22:50:11.330Z", "1.0.0": "2017-07-20T21:07:29.084Z", "1.0.1": "2017-09-11T20:38:26.333Z" }, "homepage": "https://github.com/jonschlinkert/is-extendable", "keywords": [ "array", "assign", "check", "date", "extend", "extendable", "extensible", "function", "is", "object", "regex", "test" ], "repository": { "type": "git", "url": "git+https://github.com/jonschlinkert/is-extendable.git" }, "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "bugs": { "url": "https://github.com/jonschlinkert/is-extendable/issues" }, "license": "MIT", "readmeFilename": "README.md", "_attachments": {} }