coderef

ObjectBaseline · Widely available

Objects in JavaScript are collections of key-value pairs.

Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Jul 29, 2015. Widely available since Jan 29, 2018.

Browser support

DesktopChrome
1+Supportedsince Dec 11, 2008
Current: 155
Edge
12+Supportedsince Jul 29, 2015
Current: 154
Firefox
1+Supportedsince Nov 9, 2004
Current: 157
Safari
1+Supportedsince Jun 23, 2003
Current: 27
MobileChrome Android
18+Supportedsince Jun 27, 2012
Current: 155
Firefox Android
4+Supportedsince Mar 29, 2011
Current: 157
Safari iOS
1+Supportedsince Jun 29, 2007
Current: 27

How to use

This feature is Baseline widely available — use it freely, no fallback needed.

Example

Full syntax and examples are on MDN: Object.

Feature detection

JS · check before using
if (typeof Object !== "undefined") {
  // Object is available
}

Sub-features

Support for each part of the feature (37). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
Object112111841
Object.Object112111841
Object.assign451234945349
Object.constructor112111841
Object.create512451845
Object.defineProperties512451845
Object.defineProperty51245.11846
Object.entries54144710.1544710.3
Object.freeze61245.11845
Object.fromEntries73796312.1736312.2
Object.getOwnPropertyDescriptor512451845
Object.getOwnPropertyDescriptors54155010545010
Object.getOwnPropertyNames512451845
Object.getOwnPropertySymbols381236938369
Object.getPrototypeOf5123.551845
Object.hasOwnProperty112131841
Object.is191222925229
Object.isExtensible61245.11845
Object.isFrozen61245.11845
Object.isPrototypeOf112131841
Show 17 more
Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
Object.isSealed61245.11845
Object.keys512451845
Object.preventExtensions61245.11845
Object.preventExtensions.ES2015_behavior441235944359
Object.propertyIsEnumerable112131841
Object.seal61245.11845
Object.setPrototypeOf341231934319
Object.toString112111841
Object.valueOf112111841
Object.values54144710.1544710.3
shorthand_object_literals431233943339
object_initializer112111841
object_initializer.computed_property_names471234847348
object_initializer.shorthand_method_names471234947349
object_initializer.shorthand_property_names471233947339
object_initializer.spread_properties60795511.1605511.3
optional_chaining80807413.1807913.4