{"_id":"@stdlib/object-ctor","_rev":"4679130","name":"@stdlib/object-ctor","description":"Object constructor.","dist-tags":{"latest":"0.2.2"},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"},{"name":"planeshifter","email":"pgb@andrew.cmu.edu"},{"name":"rreusser","email":"rsreusser@gmail.com"},{"name":"stdlib-bot","email":""}],"time":{"modified":"2026-04-11T00:29:11.000Z","created":"2022-08-26T12:17:39.569Z","0.2.2":"2026-02-02T08:28:04.332Z","0.2.1":"2024-02-21T20:49:05.329Z","0.2.0":"2024-02-14T03:34:51.306Z","0.1.1":"2023-10-03T23:01:52.028Z","0.1.0":"2023-09-22T03:26:24.393Z","0.0.1":"2022-08-26T12:17:39.569Z"},"users":{},"author":{"name":"The Stdlib Authors","url":"https://github.com/stdlib-js/stdlib/graphs/contributors"},"repository":{"type":"git","url":"git://github.com/stdlib-js/object-ctor.git"},"versions":{"0.2.2":{"name":"@stdlib/object-ctor","version":"0.2.2","description":"Object constructor.","license":"Apache-2.0","author":{"name":"The Stdlib Authors","url":"https://github.com/stdlib-js/stdlib/graphs/contributors"},"contributors":[{"name":"The Stdlib Authors","url":"https://github.com/stdlib-js/stdlib/graphs/contributors"}],"main":"./lib","directories":{"doc":"./docs","lib":"./lib","dist":"./dist"},"types":"./docs/types","scripts":{},"homepage":"https://stdlib.io","repository":{"type":"git","url":"git://github.com/stdlib-js/object-ctor.git"},"bugs":{"url":"https://github.com/stdlib-js/stdlib/issues"},"dependencies":{},"devDependencies":{},"engines":{"node":">=0.10.0","npm":">2.7.0"},"os":["aix","darwin","freebsd","linux","macos","openbsd","sunos","win32","windows"],"keywords":["stdlib","object","constructor","ctor"],"funding":{"type":"opencollective","url":"https://opencollective.com/stdlib"},"_id":"@stdlib/object-ctor@0.2.2","gitHead":"805412fecd7227470a7fb28606c94f00d1e7538e","_nodeVersion":"20.20.0","_npmVersion":"10.8.2","dist":{"shasum":"28ace4b617125eb9d0489234d1ed1d031375d669","size":9188,"noattachment":false,"key":"/@stdlib/object-ctor/-/@stdlib/object-ctor-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@stdlib/object-ctor/download/@stdlib/object-ctor-0.2.2.tgz"},"_npmUser":{"name":"stdlib-bot","email":"kgryte+stdlibbot@gmail.com"},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"},{"name":"planeshifter","email":"pgb@andrew.cmu.edu"},{"name":"rreusser","email":"rsreusser@gmail.com"},{"name":"stdlib-bot","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/object-ctor_0.2.2_1770020884179_0.37565787782108817"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-02-02T08:28:04.332Z","publish_time":1770020884332,"_source_registry_name":"default","_cnpm_publish_time":1770020884332},"0.2.1":{"name":"@stdlib/object-ctor","version":"0.2.1","description":"Object constructor.","license":"Apache-2.0","author":{"name":"The Stdlib Authors","url":"https://github.com/stdlib-js/stdlib/graphs/contributors"},"contributors":[{"name":"The Stdlib Authors","url":"https://github.com/stdlib-js/stdlib/graphs/contributors"}],"main":"./lib","directories":{"doc":"./docs","lib":"./lib","dist":"./dist"},"types":"./docs/types","scripts":{},"homepage":"https://stdlib.io","repository":{"type":"git","url":"git://github.com/stdlib-js/object-ctor.git"},"bugs":{"url":"https://github.com/stdlib-js/stdlib/issues"},"dependencies":{},"devDependencies":{},"engines":{"node":">=0.10.0","npm":">2.7.0"},"os":["aix","darwin","freebsd","linux","macos","openbsd","sunos","win32","windows"],"keywords":["stdlib","object","constructor","ctor"],"funding":{"type":"opencollective","url":"https://opencollective.com/stdlib"},"gitHead":"64931c5fdb4abc3a339b619658d3b5acc089e556","_id":"@stdlib/object-ctor@0.2.1","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"shasum":"a3e261cd65eecffcb03e2cc7472aa5058efba48f","size":9192,"noattachment":false,"key":"/@stdlib/object-ctor/-/@stdlib/object-ctor-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@stdlib/object-ctor/download/@stdlib/object-ctor-0.2.1.tgz"},"_npmUser":{"name":"stdlib-bot","email":"kgryte+stdlibbot@gmail.com"},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"},{"name":"planeshifter","email":"pgb@andrew.cmu.edu"},{"name":"rreusser","email":"rsreusser@gmail.com"},{"name":"stdlib-bot","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/object-ctor_0.2.1_1708548545126_0.7363023074511301"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-02-21T20:49:05.329Z","publish_time":1708548545329,"_source_registry_name":"default","_cnpm_publish_time":1708548545329},"0.2.0":{"name":"@stdlib/object-ctor","version":"0.2.0","description":"Object constructor.","license":"Apache-2.0","author":{"name":"The Stdlib Authors","url":"https://github.com/stdlib-js/stdlib/graphs/contributors"},"contributors":[{"name":"The Stdlib Authors","url":"https://github.com/stdlib-js/stdlib/graphs/contributors"}],"main":"./lib","directories":{"benchmark":"./benchmark","doc":"./docs","example":"./examples","lib":"./lib","test":"./test"},"types":"./docs/types","scripts":{"test":"make test","test-cov":"make test-cov","examples":"make examples","benchmark":"make benchmark"},"homepage":"https://stdlib.io","repository":{"type":"git","url":"git://github.com/stdlib-js/object-ctor.git"},"bugs":{"url":"https://github.com/stdlib-js/stdlib/issues"},"dependencies":{},"devDependencies":{"@stdlib/boolean-ctor":"^0.1.1","@stdlib/number-ctor":"^0.1.1","tape":"git+https://github.com/kgryte/tape.git#fix/globby","istanbul":"^0.4.1","tap-min":"git+https://github.com/Planeshifter/tap-min.git","@stdlib/bench-harness":"^0.1.2","@stdlib/bench":"^0.3.1"},"engines":{"node":">=0.10.0","npm":">2.7.0"},"os":["aix","darwin","freebsd","linux","macos","openbsd","sunos","win32","windows"],"keywords":["stdlib","object","constructor","ctor"],"funding":{"type":"opencollective","url":"https://opencollective.com/stdlib"},"gitHead":"7137673f0798ef13d7c9fd7becf78e557b1d583b","_id":"@stdlib/object-ctor@0.2.0","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"shasum":"54058b551a020f86b4db6fc23895a2043f7f9e18","size":9352,"noattachment":false,"key":"/@stdlib/object-ctor/-/@stdlib/object-ctor-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@stdlib/object-ctor/download/@stdlib/object-ctor-0.2.0.tgz"},"_npmUser":{"name":"stdlib-bot","email":"kgryte+stdlibbot@gmail.com"},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"},{"name":"planeshifter","email":"pgb@andrew.cmu.edu"},{"name":"rreusser","email":"rsreusser@gmail.com"},{"name":"stdlib-bot","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/object-ctor_0.2.0_1707881691127_0.47324391610413064"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-02-14T03:34:51.306Z","publish_time":1707881691306,"_source_registry_name":"default","_cnpm_publish_time":1707881691306},"0.1.1":{"name":"@stdlib/object-ctor","version":"0.1.1","description":"Object constructor.","license":"Apache-2.0","author":{"name":"The Stdlib Authors","url":"https://github.com/stdlib-js/stdlib/graphs/contributors"},"contributors":[{"name":"The Stdlib Authors","url":"https://github.com/stdlib-js/stdlib/graphs/contributors"}],"main":"./lib","directories":{"benchmark":"./benchmark","doc":"./docs","example":"./examples","lib":"./lib","test":"./test"},"types":"./docs/types","scripts":{"test":"make test","test-cov":"make test-cov","examples":"make examples","benchmark":"make benchmark"},"homepage":"https://stdlib.io","repository":{"type":"git","url":"git://github.com/stdlib-js/object-ctor.git"},"bugs":{"url":"https://github.com/stdlib-js/stdlib/issues"},"dependencies":{},"devDependencies":{"@stdlib/bench":"^0.1.0","@stdlib/boolean-ctor":"^0.1.0","@stdlib/number-ctor":"^0.1.0","tape":"git+https://github.com/kgryte/tape.git#fix/globby","istanbul":"^0.4.1","tap-min":"git+https://github.com/Planeshifter/tap-min.git"},"engines":{"node":">=0.10.0","npm":">2.7.0"},"os":["aix","darwin","freebsd","linux","macos","openbsd","sunos","win32","windows"],"keywords":["stdlib","object","constructor","ctor"],"funding":{"type":"opencollective","url":"https://opencollective.com/stdlib"},"gitHead":"836b37cf688bfa381fcb3cb3a2dd327f0a94ad19","_id":"@stdlib/object-ctor@0.1.1","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"shasum":"c9a40b7c41a157604ee442e5a53c3dab6a3f100f","size":9454,"noattachment":false,"key":"/@stdlib/object-ctor/-/@stdlib/object-ctor-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@stdlib/object-ctor/download/@stdlib/object-ctor-0.1.1.tgz"},"_npmUser":{"name":"stdlib-bot","email":"kgryte+stdlibbot@gmail.com"},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"},{"name":"planeshifter","email":"pgb@andrew.cmu.edu"},{"name":"rreusser","email":"rsreusser@gmail.com"},{"name":"stdlib-bot","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/object-ctor_0.1.1_1696374111798_0.4992806614847125"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-10-03T23:01:52.028Z","publish_time":1696374112028,"_source_registry_name":"default","_cnpm_publish_time":1696374112028},"0.1.0":{"name":"@stdlib/object-ctor","version":"0.1.0","description":"Object constructor.","license":"Apache-2.0","author":{"name":"The Stdlib Authors","url":"https://github.com/stdlib-js/stdlib/graphs/contributors"},"contributors":[{"name":"The Stdlib Authors","url":"https://github.com/stdlib-js/stdlib/graphs/contributors"}],"main":"./lib","directories":{"benchmark":"./benchmark","doc":"./docs","example":"./examples","lib":"./lib","test":"./test"},"types":"./docs/types","scripts":{"test":"make test","test-cov":"make test-cov","examples":"make examples","benchmark":"make benchmark"},"homepage":"https://stdlib.io","repository":{"type":"git","url":"git://github.com/stdlib-js/object-ctor.git"},"bugs":{"url":"https://github.com/stdlib-js/stdlib/issues"},"dependencies":{},"devDependencies":{"@stdlib/bench":"^0.0.12","@stdlib/boolean-ctor":"^0.0.1","@stdlib/number-ctor":"^0.0.7","tape":"git+https://github.com/kgryte/tape.git#fix/globby","istanbul":"^0.4.1","tap-min":"git+https://github.com/Planeshifter/tap-min.git"},"engines":{"node":">=0.10.0","npm":">2.7.0"},"os":["aix","darwin","freebsd","linux","macos","openbsd","sunos","win32","windows"],"keywords":["stdlib","object","constructor","ctor"],"funding":{"type":"opencollective","url":"https://opencollective.com/stdlib"},"gitHead":"4f2310de3494fe36f4b74db309593f63e9d24dcc","_id":"@stdlib/object-ctor@0.1.0","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"shasum":"e040d450afc2fe04a63c97ac0ac6298bd3d34fa1","size":9461,"noattachment":false,"key":"/@stdlib/object-ctor/-/@stdlib/object-ctor-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@stdlib/object-ctor/download/@stdlib/object-ctor-0.1.0.tgz"},"_npmUser":{"name":"stdlib-bot","email":"kgryte+stdlibbot@gmail.com"},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"},{"name":"planeshifter","email":"pgb@andrew.cmu.edu"},{"name":"rreusser","email":"rsreusser@gmail.com"},{"name":"stdlib-bot","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/object-ctor_0.1.0_1695353184148_0.8972335005043939"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-09-22T03:26:24.393Z","publish_time":1695353184393,"_source_registry_name":"default","_cnpm_publish_time":1695353184393},"0.0.1":{"name":"@stdlib/object-ctor","version":"0.0.1","description":"Object constructor.","license":"Apache-2.0","author":{"name":"The Stdlib Authors","url":"https://github.com/stdlib-js/stdlib/graphs/contributors"},"contributors":[{"name":"The Stdlib Authors","url":"https://github.com/stdlib-js/stdlib/graphs/contributors"}],"main":"./lib","directories":{"benchmark":"./benchmark","doc":"./docs","example":"./examples","lib":"./lib","test":"./test"},"types":"./docs/types","scripts":{"test":"make test","test-cov":"make test-cov","examples":"make examples","benchmark":"make benchmark"},"homepage":"https://stdlib.io","repository":{"type":"git","url":"git://github.com/stdlib-js/object-ctor.git"},"bugs":{"url":"https://github.com/stdlib-js/stdlib/issues"},"dependencies":{},"devDependencies":{"@stdlib/bench":"^0.0.x","@stdlib/boolean-ctor":"^0.0.x","@stdlib/number-ctor":"^0.0.x","tape":"git+https://github.com/kgryte/tape.git#fix/globby","istanbul":"^0.4.1","tap-spec":"5.x.x"},"engines":{"node":">=0.10.0","npm":">2.7.0"},"os":["aix","darwin","freebsd","linux","macos","openbsd","sunos","win32","windows"],"keywords":["stdlib","object","constructor","ctor"],"funding":{"type":"patreon","url":"https://www.patreon.com/athan"},"gitHead":"81443bf62d3889590275703903d435acabd5a725","_id":"@stdlib/object-ctor@0.0.1","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"shasum":"9a15c04b71682087a7e9ba00c4482fb42f1cfcfe","size":8369,"noattachment":false,"key":"/@stdlib/object-ctor/-/@stdlib/object-ctor-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@stdlib/object-ctor/download/@stdlib/object-ctor-0.0.1.tgz"},"_npmUser":{"name":"kgryte","email":"kgryte@gmail.com"},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"},{"name":"planeshifter","email":"pgb@andrew.cmu.edu"},{"name":"rreusser","email":"rsreusser@gmail.com"},{"name":"stdlib-bot","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/object-ctor_0.0.1_1661516259390_0.529652838211268"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-08-26T12:21:55.627Z","publish_time":1661516259569,"_cnpm_publish_time":1661516259569}},"readme":"<!--\n\n@license Apache-2.0\n\nCopyright (c) 2022 The Stdlib Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n-->\n\n\n<details>\n  <summary>\n    About stdlib...\n  </summary>\n  <p>We believe in a future in which the web is a preferred environment for numerical computation. To help realize this future, we've built stdlib. stdlib is a standard library, with an emphasis on numerical and scientific computation, written in JavaScript (and C) for execution in browsers and in Node.js.</p>\n  <p>The library is fully decomposable, being architected in such a way that you can swap out and mix and match APIs and functionality to cater to your exact preferences and use cases.</p>\n  <p>When you use stdlib, you can be absolutely certain that you are using the most thorough, rigorous, well-written, studied, documented, tested, measured, and high-quality code out there.</p>\n  <p>To join us in bringing numerical computing to the web, get started by checking us out on <a href=\"https://github.com/stdlib-js/stdlib\">GitHub</a>, and please consider <a href=\"https://opencollective.com/stdlib\">financially supporting stdlib</a>. We greatly appreciate your continued support!</p>\n</details>\n\n# Object\n\n[![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] <!-- [![dependencies][dependencies-image]][dependencies-url] -->\n\n> [Object][mdn-object] constructor.\n\n<!-- Section to include introductory text. Make sure to keep an empty line after the intro `section` element and another before the `/section` close. -->\n\n<section class=\"intro\">\n\n</section>\n\n<!-- /.intro -->\n\n<!-- Package usage documentation. -->\n\n<section class=\"installation\">\n\n## Installation\n\n```bash\nnpm install @stdlib/object-ctor\n```\n\n</section>\n\n<section class=\"usage\">\n\n## Usage\n\n```javascript\nvar Object = require( '@stdlib/object-ctor' );\n```\n\n#### Object( value )\n\nReturns a new [object][mdn-object].\n\n```javascript\nvar o = new Object( null );\n// returns {}\n```\n\n* * *\n\n### Properties\n\n<a name=\"prop-constructor\"></a>\n\n#### Object.prototype.constructor\n\nProperty whose value is a reference to the constructor function that created the instance object.\n\n```javascript\nvar o = new Object( null );\nvar ctr = o.constructor;\n// returns Object\n```\n\n* * *\n\n### Methods\n\n<a name=\"static-method-assign\"></a>\n\n#### Object.assign( target, ...sources )\n\nAssigns enumerable properties of one or more source objects to a target object.\n\n```javascript\nvar o = Object.assign( {}, { 'a': 1, 'b': 2 } );\n// returns { 'a': 1, 'b': 2 }\n```\n\n<a name=\"static-method-create\"></a>\n\n#### Object.create( prototype, properties )\n\nReturns a new object with the given prototype and properties.\n\n```javascript\nvar o = Object.create( null, {\n    'a': {\n        'value': 1\n    },\n    'b': {\n        'value': 2\n    }\n});\n// returns { 'a': 1, 'b': 2 }\n\nfunction Person( first, last ) {\n    this.first = first;\n    this.last = last;\n}\n\nvar p = Object.create( Person.prototype, {\n    'first': {\n        'value': 'Jane'\n    },\n    'last': {\n        'value': 'Doe'\n    }\n});\n// returns Person { 'first': 'Jane', 'last': 'Doe' }\n```\n\n<a name=\"static-method-define-properties\"></a>\n\n#### Object.defineProperties( target, properties )\n\nDefines new or modifies existing properties directly on an object, returning the object.\n\n```javascript\nvar o = Object.defineProperties( {}, {\n    'a': {\n        'value': 1\n    },\n    'b': {\n        'value': 2\n    }\n});\n// returns { 'a': 1, 'b': 2 }\n```\n\n<a name=\"static-method-define-property\"></a>\n\n#### Object.defineProperty( target, property, descriptor )\n\nDefines a new property directly on an object, or modifies an existing property on an object, and returns the object.\n\n```javascript\nvar o = Object.defineProperty( {}, 'a', {\n    'value': 1,\n    'writable': true,\n    'enumerable': true,\n    'configurable': true\n});\n// returns { 'a': 1 }\n```\n\n<a name=\"static-method-entries\"></a>\n\n#### Object.entries( obj )\n\nReturns an array of a given object's own enumerable string-keyed property entries, i.e. `[key, value]` pairs.\n\n```javascript\nvar o = { 'a': 1, 'b': 2 };\nvar arr = Object.entries( o );\n// e.g., returns [ [ 'a', 1 ], [ 'b', 2 ] ]\n```\n\n<a name=\"static-method-freeze\"></a>\n\n#### Object.freeze( o )\n\nFreezes an object. A frozen object can no longer be changed; freezing an object prevents new properties from being added to it, existing properties from being removed, and existing properties from being changed.\n\n```javascript\nvar o = { 'a': 1 };\nObject.freeze( o );\n// returns { 'a': 1 }\n\no.b = 1;\nvar v = o.b;\n// returns undefined\n```\n\n<a name=\"static-method-get-own-property-descriptor\"></a>\n\n#### Object.getOwnPropertyDescriptor( o, p )\n\nReturns an object that contains the properties of the given object.\n\n```javascript\nvar o = { 'a': 1 };\nvar d = Object.getOwnPropertyDescriptor( o, 'a' );\n// returns { 'value': 1, 'writable': true, 'enumerable': true, 'configurable': true }\n```\n\n<a name=\"static-method-get-own-property-descriptors\"></a>\n\n#### Object.getOwnPropertyDescriptors( o )\n\nReturns an object whose properties are the result of calling `Object.getOwnPropertyDescriptor()` on every property of the given object.\n\n```javascript\nvar o = { 'a': 1, 'b': 2 };\nvar d = Object.getOwnPropertyDescriptors( o );\n// returns { 'a': { 'value': 1, 'writable': true, 'enumerable': true, 'configurable': true }, 'b': { 'value': 2, 'writable': true, 'enumerable': true, 'configurable': true } }\n```\n\n<a name=\"static-method-get-own-property-names\"></a>\n\n#### Object.getOwnPropertyNames( o )\n\nReturns an array of a given object's own property names.\n\n```javascript\nvar o = { 'a': 1, 'b': 2 };\nvar arr = Object.getOwnPropertyNames( o );\n// e.g., returns [ 'a', 'b' ]\n```\n\n<a name=\"static-method-get-own-property-symbols\"></a>\n\n#### Object.getOwnPropertySymbols( o )\n\nReturns an array of a given object's own property symbols.\n\n```javascript\nvar o = { 'a': 1 };\no[ Symbol( 'b' ) ] = 2;\nvar arr = Object.getOwnPropertySymbols( o );\n// returns [ Symbol(b) ]\n```\n\n<a name=\"static-method-get-prototype-of\"></a>\n\n#### Object.getPrototypeOf( o )\n\nReturns the prototype of an object.\n\n```javascript\nvar o = { 'a': 1 };\nvar p = Object.getPrototypeOf( o );\n// returns {}\n```\n\n<a name=\"static-method-has-own\"></a>\n\n#### Object.hasOwn( o, p )\n\nReturns a boolean indicating whether an object has a property with the specified name.\n\n```javascript\nvar o = { 'a': 1 };\nvar b = Object.hasOwn( o, 'b' );\n// returns false\n```\n\n<a name=\"method-proto-has-own-prop\"></a>\n\n#### Object.prototype.hasOwnProperty( p )\n\nReturns a boolean indicating whether an object has a property with the specified name.\n\n```javascript\nvar o = { 'a': 1 };\nvar b = o.hasOwnProperty( 'a' );\n// returns true\n```\n\n<a name=\"static-method-is\"></a>\n\n#### Object.is( value1, value2 )\n\nReturns a boolean indicating whether two values are the same value.\n\n```javascript\nvar b = Object.is( 1, 1 );\n// returns true\n\nb = Object.is( 1, '1' );\n// returns false\n```\n\n<a name=\"static-method-is-extensible\"></a>\n\n#### Object.isExtensible( o )\n\nReturns a boolean indicating whether an object is extensible (whether new properties can be added to it).\n\n```javascript\nvar o = { 'a': 1 };\nvar b = Object.isExtensible( o );\n// returns true\n\nObject.preventExtensions( o );\nb = Object.isExtensible( o );\n// returns false\n```\n\n<a name=\"static-method-is-frozen\"></a>\n\n#### Object.isFrozen( o )\n\nReturns a boolean indicating whether an object is frozen. Frozen objects can no longer be changed; freezing an object prevents new properties from being added to it, existing properties from being removed, and existing properties from being changed.\n\n```javascript\nvar o = { 'a': 1 };\nvar b = Object.isFrozen( o );\n// returns false\n\nObject.freeze( o );\nb = Object.isFrozen( o );\n// returns true\n```\n\n<a name=\"method-is-prototype-of\"></a>\n\n#### Object.prototype.isPrototypeOf( o )\n\nReturns a boolean indicating whether an object is in the prototype chain of another object.\n\n```javascript\nvar o = { 'a': 1 };\nvar p = { '__proto__': o };\nvar b = o.isPrototypeOf( p );\n// returns true\n```\n\n<a name=\"static-method-is-sealed\"></a>\n\n#### Object.isSealed( o )\n\nReturns a boolean indicating whether an object is sealed. An object is sealed if it is not extensible and all of its properties are non-configurable.\n\n```javascript\nvar o = { 'a': 1 };\nvar b = Object.isSealed( o );\n// returns false\n\nObject.seal( o );\nb = Object.isSealed( o );\n// returns true\n```\n\n<a name=\"static-method-keys\"></a>\n\n#### Object.keys( o )\n\nReturns an array of a given object's own enumerable property names.\n\n```javascript\nvar o = { 'a': 1, 'b': 2 };\nvar arr = Object.keys( o );\n// e.g., returns [ 'a', 'b' ]\n```\n\n<a name=\"static-method-prevent-extensions\"></a>\n\n#### Object.preventExtensions( o )\n\nPrevents new properties from being added to an object.\n\n```javascript\nvar o = { 'a': 1 };\nObject.preventExtensions( o );\no.b = 2;\nvar b = ( o.b === void 0 );\n// returns true\n\no.a = 3;\nb = ( o.a === 3 );\n// returns true\n```\n\n<a name=\"method-prop-is-enumerable\"></a>\n\n#### Object.prototype.propertyIsEnumerable( p )\n\nReturns a boolean indicating whether a property is enumerable.\n\n```javascript\nvar o = { 'a': 1 };\nvar b = o.propertyIsEnumerable( 'a' );\n// returns true\n\nvar arr = [ 1, 2, 3 ];\nb = arr.propertyIsEnumerable( 'length' );\n// returns false\n```\n\n<a name=\"static-method-seal\"></a>\n\n#### Object.seal( o )\n\nSeals an object, preventing new properties from being added to it (i.e., making it non extensible) and marking all existing properties as non-configurable.\n\n```javascript\nvar o = { 'a': 1 };\nObject.seal( o );\n\no.b = 2;\nvar b = ( o.b === void 0 );\n// returns true\n```\n\n<a name=\"static-method-set-prototype-of\"></a>\n\n#### Object.setPrototypeOf( o, proto )\n\nSets the prototype of an object.\n\n```javascript\nvar o = { 'a': 1 };\nvar p = { 'b': 2 };\nObject.setPrototypeOf( o, p );\n\nvar b = ( o.b === 2 );\n// returns true\n```\n\n<a name=\"method-to-locale-string\"></a>\n\n#### Object.prototype.toLocaleString()\n\nReturns a string representing the object.\n\n```javascript\nvar o = { 'a': 1 };\nvar str = o.toLocaleString();\n// returns <string>\n```\n\n<a name=\"method-to-string\"></a>\n\n#### Object.prototype.toString()\n\nReturns a string representing the object.\n\n```javascript\nvar o = { 'a': 1 };\nvar str = o.toString();\n// returns <string>\n```\n\n<a name=\"method-to-value-of\"></a>\n\n#### Object.prototype.valueOf()\n\nReturns the primitive value of the object.\n\n```javascript\nvar o = {};\nvar v = o.valueOf();\n// returns {}\n```\n\n<a name=\"static-method-values\"></a>\n\n#### Object.values( o )\n\nReturns an array of a given object's own enumerable property values.\n\n```javascript\nvar o = { 'a': 1, 'b': 2 };\nvar arr = Object.values( o );\n// e.g., returns [ 1, 2 ]\n```\n\n</section>\n\n<!-- /.usage -->\n\n<!-- Package usage notes. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->\n\n<section class=\"notes\">\n\n## Notes\n\n-   If provided `null` or `undefined`, the function returns an empty object.\n-   If provided an existing object, the function returns the input value unchanged.\n-   Otherwise, if provided any other value (e.g., a number, string, etc), the function will return an object of the corresponding type.\n\n</section>\n\n<!-- /.notes -->\n\n<!-- Package usage examples. -->\n\n<section class=\"examples\">\n\n## Examples\n\n<!-- eslint no-undef: \"error\" -->\n\n```javascript\nvar Object = require( '@stdlib/object-ctor' );\n\nvar values = [\n    '5',\n    5,\n    true,\n    false,\n    null,\n    void 0,\n    [],\n    {}\n];\n\nvar i;\nfor ( i = 0; i < values.length; i++ ) {\n    console.log( new Object( values[ i ] ) );\n}\n```\n\n</section>\n\n<!-- /.examples -->\n\n<!-- Section to include cited references. If references are included, add a horizontal rule *before* the section. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->\n\n<section class=\"references\">\n\n</section>\n\n<!-- /.references -->\n\n<!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->\n\n<section class=\"related\">\n\n</section>\n\n<!-- /.related -->\n\n<!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->\n\n\n<section class=\"main-repo\" >\n\n* * *\n\n## Notice\n\nThis package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more.\n\nFor more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib].\n\n#### Community\n\n[![Chat][chat-image]][chat-url]\n\n---\n\n## License\n\nSee [LICENSE][stdlib-license].\n\n\n## Copyright\n\nCopyright &copy; 2016-2026. The Stdlib [Authors][stdlib-authors].\n\n</section>\n\n<!-- /.stdlib -->\n\n<!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->\n\n<section class=\"links\">\n\n[npm-image]: http://img.shields.io/npm/v/@stdlib/object-ctor.svg\n[npm-url]: https://npmjs.org/package/@stdlib/object-ctor\n\n[test-image]: https://github.com/stdlib-js/object-ctor/actions/workflows/test.yml/badge.svg?branch=v0.2.2\n[test-url]: https://github.com/stdlib-js/object-ctor/actions/workflows/test.yml?query=branch:v0.2.2\n\n[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/object-ctor/main.svg\n[coverage-url]: https://codecov.io/github/stdlib-js/object-ctor?branch=main\n\n<!--\n\n[dependencies-image]: https://img.shields.io/david/stdlib-js/object-ctor.svg\n[dependencies-url]: https://david-dm.org/stdlib-js/object-ctor/main\n\n-->\n\n[chat-image]: https://img.shields.io/badge/zulip-join_chat-brightgreen.svg\n[chat-url]: https://stdlib.zulipchat.com\n\n[stdlib]: https://github.com/stdlib-js/stdlib\n\n[stdlib-authors]: https://github.com/stdlib-js/stdlib/graphs/contributors\n\n[umd]: https://github.com/umdjs/umd\n[es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules\n\n[deno-url]: https://github.com/stdlib-js/object-ctor/tree/deno\n[deno-readme]: https://github.com/stdlib-js/object-ctor/blob/deno/README.md\n[umd-url]: https://github.com/stdlib-js/object-ctor/tree/umd\n[umd-readme]: https://github.com/stdlib-js/object-ctor/blob/umd/README.md\n[esm-url]: https://github.com/stdlib-js/object-ctor/tree/esm\n[esm-readme]: https://github.com/stdlib-js/object-ctor/blob/esm/README.md\n[branches-url]: https://github.com/stdlib-js/object-ctor/blob/main/branches.md\n\n[stdlib-license]: https://raw.githubusercontent.com/stdlib-js/object-ctor/main/LICENSE\n\n[mdn-object]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object\n\n</section>\n\n<!-- /.links -->\n","_attachments":{},"homepage":"https://stdlib.io","bugs":{"url":"https://github.com/stdlib-js/stdlib/issues"},"license":"Apache-2.0"}