-
Notifications
You must be signed in to change notification settings - Fork 1
StdLib Object
Roger Johansson edited this page Jan 14, 2026
·
1 revision
The Object built-in provides methods for creating and manipulating JavaScript objects.
Implementation Status: 100% Complete
| Category | Methods | Implemented |
|---|---|---|
| Static Methods | 23 | 23 |
| Prototype Methods | 10 | 10 |
| Total | 33 | 33 |
| Method | Status | Description |
|---|---|---|
Object.keys(obj) |
Implemented | Returns array of own enumerable property names |
Object.values(obj) |
Implemented | Returns array of own enumerable property values |
Object.entries(obj) |
Implemented | Returns array of [key, value] pairs |
Object.assign(target, ...sources) |
Implemented | Copies enumerable properties from sources to target |
Object.fromEntries(iterable) |
Implemented | Creates object from [key, value] iterable |
Object.hasOwn(obj, prop) |
Implemented | Checks if object has own property (ES2022) |
Object.freeze(obj) |
Implemented | Freezes an object |
Object.seal(obj) |
Implemented | Seals an object |
Object.isFrozen(obj) |
Implemented | Checks if object is frozen |
Object.isSealed(obj) |
Implemented | Checks if object is sealed |
Object.is(value1, value2) |
Implemented | SameValue comparison |
Object.create(proto, props) |
Implemented | Creates object with specified prototype |
Object.getOwnPropertyNames(obj) |
Implemented | Returns array of own property names (strings) |
Object.getOwnPropertyDescriptor(obj, prop) |
Implemented | Returns property descriptor |
Object.getOwnPropertyDescriptors(obj) |
Implemented | Returns all own property descriptors |
Object.getPrototypeOf(obj) |
Implemented | Returns prototype of object |
Object.defineProperty(obj, prop, desc) |
Implemented | Defines a property |
Object.defineProperties(obj, props) |
Implemented | Defines multiple properties |
Object.setPrototypeOf(obj, proto) |
Implemented | Sets prototype of object |
Object.preventExtensions(obj) |
Implemented | Prevents new properties |
Object.isExtensible(obj) |
Implemented | Checks if object is extensible |
Object.getOwnPropertySymbols(obj) |
Implemented | Returns array of own symbol properties |
Object.groupBy(items, callback) |
Implemented | Groups iterable elements by key (ES2024) |
| Method | Status | Description |
|---|---|---|
toString() |
Implemented | Returns "[object Tag]", respects Symbol.toStringTag |
valueOf() |
Implemented | Returns the object itself |
hasOwnProperty(prop) |
Implemented | Checks if property is own property |
propertyIsEnumerable(prop) |
Implemented | Checks if property is enumerable |
toLocaleString() |
Implemented | Delegates to toString() |
isPrototypeOf(obj) |
Implemented | Checks if in prototype chain |
__lookupGetter__(prop) |
Implemented | Legacy: looks up getter in prototype chain |
__lookupSetter__(prop) |
Implemented | Legacy: looks up setter in prototype chain |
__proto__ (getter) |
Implemented | Gets prototype |
__proto__ (setter) |
Implemented | Sets prototype |
| File | Purpose |
|---|---|
StdLib/Object/ObjectConstructor.cs |
Static methods |
StdLib/Object/ObjectPrototype.cs |
Prototype methods |
StdLib/Object/ObjectHelper.cs |
Internal helpers |
- Standard-Library-Architecture - How prototypes are implemented
- JsObject-and-Properties - Internal object representation