{"id":15633655,"url":"https://github.com/jonschlinkert/is-plain-object","last_synced_at":"2025-05-15T18:02:38.343Z","repository":{"id":21014470,"uuid":"24306940","full_name":"jonschlinkert/is-plain-object","owner":"jonschlinkert","description":"Returns true if the given value is an object created by the Object constructor.","archived":false,"fork":false,"pushed_at":"2024-03-29T03:45:01.000Z","size":48,"stargazers_count":151,"open_issues_count":11,"forks_count":31,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-08T13:29:10.542Z","etag":null,"topics":["is","is-obj","is-object","is-plain-obj","isobject","javascript","object","plain-object","plain-objects"],"latest_commit_sha":null,"homepage":"https://github.com/jonschlinkert","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonschlinkert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-09-21T22:45:00.000Z","updated_at":"2025-03-01T12:04:06.000Z","dependencies_parsed_at":"2024-06-18T12:26:05.180Z","dependency_job_id":"2d6597ac-95fb-4ff7-a99f-c9779fe41563","html_url":"https://github.com/jonschlinkert/is-plain-object","commit_stats":{"total_commits":47,"total_committers":8,"mean_commits":5.875,"dds":0.5957446808510638,"last_synced_commit":"0a47f0f6cd10e0d2489beb55a32a8d0ba7b04b25"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fis-plain-object","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fis-plain-object/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fis-plain-object/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fis-plain-object/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonschlinkert","download_url":"https://codeload.github.com/jonschlinkert/is-plain-object/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243775579,"owners_count":20346214,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["is","is-obj","is-object","is-plain-obj","isobject","javascript","object","plain-object","plain-objects"],"created_at":"2024-10-03T10:49:53.373Z","updated_at":"2025-03-17T19:11:24.363Z","avatar_url":"https://github.com/jonschlinkert.png","language":"HTML","readme":"# is-plain-object [![NPM version](https://img.shields.io/npm/v/is-plain-object.svg?style=flat)](https://www.npmjs.com/package/is-plain-object) [![NPM monthly downloads](https://img.shields.io/npm/dm/is-plain-object.svg?style=flat)](https://npmjs.org/package/is-plain-object) [![NPM total downloads](https://img.shields.io/npm/dt/is-plain-object.svg?style=flat)](https://npmjs.org/package/is-plain-object) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/is-plain-object.svg?style=flat\u0026label=Travis)](https://travis-ci.org/jonschlinkert/is-plain-object)\n\n\u003e Returns true if an object was created by the `Object` constructor, or Object.create(null).\n\nPlease consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save is-plain-object\n```\n\nUse [isobject](https://github.com/jonschlinkert/isobject) if you only want to check if the value is an object and not an array or null.\n\n## Usage\n\nwith es modules\n```js\nimport { isPlainObject } from 'is-plain-object';\n```\n\nor with commonjs\n```js\nconst { isPlainObject } = require('is-plain-object');\n```\n\n**true** when created by the `Object` constructor, or Object.create(null).\n\n```js\nisPlainObject(Object.create({}));\n//=\u003e true\nisPlainObject(Object.create(Object.prototype));\n//=\u003e true\nisPlainObject({foo: 'bar'});\n//=\u003e true\nisPlainObject({});\n//=\u003e true\nisPlainObject(null);\n//=\u003e true\n```\n\n**false** when not created by the `Object` constructor.\n\n```js\nisPlainObject(1);\n//=\u003e false\nisPlainObject(['foo', 'bar']);\n//=\u003e false\nisPlainObject([]);\n//=\u003e false\nisPlainObject(new Foo);\n//=\u003e false\nisPlainObject(Object.create(null));\n//=\u003e false\n```\n\n## About\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eContributing\u003c/strong\u003e\u003c/summary\u003e\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eRunning Tests\u003c/strong\u003e\u003c/summary\u003e\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 \u0026\u0026 npm test\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eBuilding docs\u003c/strong\u003e\u003c/summary\u003e\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 \u0026\u0026 verb\n```\n\n\u003c/details\u003e\n\n### Related projects\n\nYou might also be interested in these projects:\n\n* [is-number](https://www.npmjs.com/package/is-number): Returns true if a number or string value is a finite number. Useful for regex… [more](https://github.com/jonschlinkert/is-number) | [homepage](https://github.com/jonschlinkert/is-number \"Returns true if a number or string value is a finite number. Useful for regex matches, parsing, user input, etc.\")\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### Contributors\n\n| **Commits** | **Contributor** |  \n| --- | --- |  \n| 19 | [jonschlinkert](https://github.com/jonschlinkert) |  \n| 6  | [TrySound](https://github.com/TrySound) |  \n| 6  | [stevenvachon](https://github.com/stevenvachon) |  \n| 3  | [onokumus](https://github.com/onokumus) |  \n| 1  | [wtgtybhertgeghgtwtg](https://github.com/wtgtybhertgeghgtwtg) |  \n\n### Author\n\n**Jon Schlinkert**\n\n* [GitHub Profile](https://github.com/jonschlinkert)\n* [Twitter Profile](https://twitter.com/jonschlinkert)\n* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert)\n\n### License\n\nCopyright © 2019, [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.8.0, on April 28, 2019._\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonschlinkert%2Fis-plain-object","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonschlinkert%2Fis-plain-object","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonschlinkert%2Fis-plain-object/lists"}