JavaScript Object Methods
23 static methods on the built-in JavaScript Object constructor, curated from the ECMAScript specification and MDN Web Docs. Covers property inspection, object creation, mutation prevention, prototype manipulation, and utility helpers added through ES2022+.
Quick fetch
Stable URL. CORS-enabled. No auth.
curl https://staticdata.dev/v1/js-object-methods.json
Or use as a typed import:
import { jsObjectMethods } from "https://staticdata.dev/v1/js-object-methods.ts"
Formats
- JSON 4.8 KB
/v1/js-object-methods.json
min: 4.3 KB · /v1/js-object-methods.min.json
- CSV 3.5 KB
/v1/js-object-methods.csv
- TypeScript 5.0 KB
/v1/js-object-methods.ts
export const jsObjectMethods
type ObjectMethod = (typeof jsObjectMethods)[number]
Schema
Each record in the dataset has the following shape.
| Field | Type | Description | Example |
|---|---|---|---|
| name | string | Full method name including Object. prefix | Object.keys |
| signature | string | Method signature with parameter names | Object.keys(obj) |
| description | string | Concise description of what the method does | Returns an array of a given object's own enumerable string-keyed property names. |
Preview
First 10 records.
| name | signature | description |
|---|---|---|
| Object.assign | Object.assign(target, ...sources) | Copies all enumerable own properties from one or more source objects to a target object. Returns the modified target object. |
| Object.create | Object.create(proto, propertiesObject) | Creates a new object with the specified prototype object and optional property descriptors. |
| Object.defineProperties | Object.defineProperties(obj, props) | Defines new or modifies existing properties directly on an object using property descriptors. Returns the object. |
| Object.defineProperty | Object.defineProperty(obj, prop, descriptor) | Defines a new property or modifies an existing property on an object using a property descriptor. Returns the object. |
| Object.entries | Object.entries(obj) | Returns an array of a given object's own enumerable string-keyed [key, value] pairs. |
| Object.freeze | Object.freeze(obj) | Freezes an object so that no properties can be added, removed, or changed. Returns the frozen object. |
| Object.fromEntries | Object.fromEntries(iterable) | Transforms a list of key-value pairs (e.g. from Object.entries or a Map) into a new object. |
| Object.getOwnPropertyDescriptor | Object.getOwnPropertyDescriptor(obj, prop) | Returns a property descriptor for an own property (one directly on the object) of a given object. |
| Object.getOwnPropertyDescriptors | Object.getOwnPropertyDescriptors(obj) | Returns all own property descriptors of a given object as an object keyed by property names. |
| Object.getOwnPropertyNames | Object.getOwnPropertyNames(obj) | Returns an array of all own property names (including non-enumerable ones, excluding Symbol-keyed) found on the given object. |
Fetch examples
Drop-in snippets in five languages.
curl -sSL https://staticdata.dev/v1/js-object-methods.json | jq '.[0]' import type { ObjectMethod } from "https://staticdata.dev/v1/js-object-methods.ts";
const res = await fetch("https://staticdata.dev/v1/js-object-methods.min.json");
if (!res.ok) throw new Error(`Fetch failed: ${res.status}`);
const jsObjectMethods: ObjectMethod[] = await res.json();
console.log(jsObjectMethods[0]); import urllib.request, json
with urllib.request.urlopen("https://staticdata.dev/v1/js-object-methods.min.json") as r:
jsObjectMethods = json.load(r)
print(jsObjectMethods[0]) package main
import (
"encoding/json"
"fmt"
"net/http"
)
func main() {
resp, err := http.Get("https://staticdata.dev/v1/js-object-methods.min.json")
if err != nil { panic(err) }
defer resp.Body.Close()
var data []map[string]any
if err := json.NewDecoder(resp.Body).Decode(&data); err != nil {
panic(err)
}
fmt.Println(data[0])
} use serde_json::Value;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let body = ureq::get("https://staticdata.dev/v1/js-object-methods.min.json").call()?.into_string()?;
let data: Vec<Value> = serde_json::from_str(&body)?;
println!("{:?}", data.first());
Ok(())
} Sources and methodology
This dataset enumerates all static methods available on the JavaScript built-in Object constructor as defined by the ECMAScript specification and documented on MDN Web Docs. Each entry includes the full qualified method name (e.g. Object.keys), its formal parameter signature, and a concise description of its behavior.
Methods are drawn from across ECMAScript editions: foundational methods like Object.create and Object.defineProperty were introduced in ES5, while more recent additions such as Object.fromEntries (ES2019), Object.hasOwn (ES2022), and Object.groupBy (ES2024) are also included. The dataset covers the complete set of 23 static methods as of ES2026 (October 2026); no Object static methods were added after ES2024.
This dataset is useful for documentation generators, JavaScript teaching tools, API explorers, code editors with autocompletion, or any application that needs programmatic access to the JavaScript standard library’s Object API surface. Instance methods inherited via Object.prototype (e.g. hasOwnProperty, toString) are not included — only static methods callable directly on Object itself.
Versioning
URLs under /v1/ are stable: field names and types will not change in a way
that breaks consumers. Values can be corrected or records added when the upstream source
changes; schema-incompatible updates ship under a new version path. See the
js-object-methods changelog for this dataset's history.
Related datasets
More Code datasets
- ansi-colors
- ascii
- cron-presets
- css-at-rules
- css-functions
- css-named-colors
- css-properties
- css-pseudo-classes
- css-pseudo-elements
- css-units
- data-units
- exit-codes
- file-signatures
- hash-algorithms
- js-math-methods
- js-string-methods
- json-schema-keywords
- jwt-claims
- mathematical-constants
- measurement-units
- node-builtin-modules
- owasp-top-10
- periodic-table
- physical-constants
- posix-signals
- programming-languages
- regex-flags
- regex-patterns
- roman-numerals
- si-base-units
- si-derived-units
- si-prefixes
- spdx-licenses
- strftime-tokens
- tailwind-colors
- time-units
- unicode-blocks
- unicode-general-categories
- unicode-planes
- unix-file-permissions
- xterm-256-colors