repo_id
stringlengths
22
103
file_path
stringlengths
41
147
content
stringlengths
181
193k
__index_level_0__
int64
0
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date/now/index.md
--- title: Date.now() slug: Web/JavaScript/Reference/Global_Objects/Date/now page-type: javascript-static-method browser-compat: javascript.builtins.Date.now --- {{JSRef}} The **`Date.now()`** static method returns the number of milliseconds elapsed since the [epoch](/en-US/docs/Web/JavaScript/Reference/Global_Object...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date/getutchours/index.md
--- title: Date.prototype.getUTCHours() slug: Web/JavaScript/Reference/Global_Objects/Date/getUTCHours page-type: javascript-instance-method browser-compat: javascript.builtins.Date.getUTCHours --- {{JSRef}} The **`getUTCHours()`** method of {{jsxref("Date")}} instances returns the hours for this date according to un...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date/setutcminutes/index.md
--- title: Date.prototype.setUTCMinutes() slug: Web/JavaScript/Reference/Global_Objects/Date/setUTCMinutes page-type: javascript-instance-method browser-compat: javascript.builtins.Date.setUTCMinutes --- {{JSRef}} The **`setUTCMinutes()`** method of {{jsxref("Date")}} instances changes the minutes for this date accor...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date/setminutes/index.md
--- title: Date.prototype.setMinutes() slug: Web/JavaScript/Reference/Global_Objects/Date/setMinutes page-type: javascript-instance-method browser-compat: javascript.builtins.Date.setMinutes --- {{JSRef}} The **`setMinutes()`** method of {{jsxref("Date")}} instances changes the minutes for this date according to loca...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date/totimestring/index.md
--- title: Date.prototype.toTimeString() slug: Web/JavaScript/Reference/Global_Objects/Date/toTimeString page-type: javascript-instance-method browser-compat: javascript.builtins.Date.toTimeString --- {{JSRef}} The **`toTimeString()`** method of {{jsxref("Date")}} instances returns a string representing the time port...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date/setutcfullyear/index.md
--- title: Date.prototype.setUTCFullYear() slug: Web/JavaScript/Reference/Global_Objects/Date/setUTCFullYear page-type: javascript-instance-method browser-compat: javascript.builtins.Date.setUTCFullYear --- {{JSRef}} The **`setUTCFullYear()`** method of {{jsxref("Date")}} instances changes the year for this date acco...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date/setdate/index.md
--- title: Date.prototype.setDate() slug: Web/JavaScript/Reference/Global_Objects/Date/setDate page-type: javascript-instance-method browser-compat: javascript.builtins.Date.setDate --- {{JSRef}} The **`setDate()`** method of {{jsxref("Date")}} instances changes the day of the month for this date according to local t...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date/getminutes/index.md
--- title: Date.prototype.getMinutes() slug: Web/JavaScript/Reference/Global_Objects/Date/getMinutes page-type: javascript-instance-method browser-compat: javascript.builtins.Date.getMinutes --- {{JSRef}} The **`getMinutes()`** method of {{jsxref("Date")}} instances returns the minutes for this date according to loca...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date/setutcmonth/index.md
--- title: Date.prototype.setUTCMonth() slug: Web/JavaScript/Reference/Global_Objects/Date/setUTCMonth page-type: javascript-instance-method browser-compat: javascript.builtins.Date.setUTCMonth --- {{JSRef}} The **`setUTCMonth()`** method of {{jsxref("Date")}} instances changes the month and/or day of the month for t...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date/setutcmilliseconds/index.md
--- title: Date.prototype.setUTCMilliseconds() slug: Web/JavaScript/Reference/Global_Objects/Date/setUTCMilliseconds page-type: javascript-instance-method browser-compat: javascript.builtins.Date.setUTCMilliseconds --- {{JSRef}} The **`setUTCMilliseconds()`** method of {{jsxref("Date")}} instances changes the millise...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date/getmilliseconds/index.md
--- title: Date.prototype.getMilliseconds() slug: Web/JavaScript/Reference/Global_Objects/Date/getMilliseconds page-type: javascript-instance-method browser-compat: javascript.builtins.Date.getMilliseconds --- {{JSRef}} The **`getMilliseconds()`** method of {{jsxref("Date")}} instances returns the milliseconds for th...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date/getmonth/index.md
--- title: Date.prototype.getMonth() slug: Web/JavaScript/Reference/Global_Objects/Date/getMonth page-type: javascript-instance-method browser-compat: javascript.builtins.Date.getMonth --- {{JSRef}} The **`getMonth()`** method of {{jsxref("Date")}} instances returns the month for this date according to local time, as...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date/settime/index.md
--- title: Date.prototype.setTime() slug: Web/JavaScript/Reference/Global_Objects/Date/setTime page-type: javascript-instance-method browser-compat: javascript.builtins.Date.setTime --- {{JSRef}} The **`setTime()`** method of {{jsxref("Date")}} instances changes the [timestamp](/en-US/docs/Web/JavaScript/Reference/Gl...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date/getday/index.md
--- title: Date.prototype.getDay() slug: Web/JavaScript/Reference/Global_Objects/Date/getDay page-type: javascript-instance-method browser-compat: javascript.builtins.Date.getDay --- {{JSRef}} The **`getDay()`** method of {{jsxref("Date")}} instances returns the day of the week for this date according to local time, ...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date/getutcseconds/index.md
--- title: Date.prototype.getUTCSeconds() slug: Web/JavaScript/Reference/Global_Objects/Date/getUTCSeconds page-type: javascript-instance-method browser-compat: javascript.builtins.Date.getUTCSeconds --- {{JSRef}} The **`getUTCSeconds()`** method of {{jsxref("Date")}} instances returns the seconds in the specified da...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date/tolocaledatestring/index.md
--- title: Date.prototype.toLocaleDateString() slug: Web/JavaScript/Reference/Global_Objects/Date/toLocaleDateString page-type: javascript-instance-method browser-compat: javascript.builtins.Date.toLocaleDateString --- {{JSRef}} The **`toLocaleDateString()`** method of {{jsxref("Date")}} instances returns a string wi...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date/getutcfullyear/index.md
--- title: Date.prototype.getUTCFullYear() slug: Web/JavaScript/Reference/Global_Objects/Date/getUTCFullYear page-type: javascript-instance-method browser-compat: javascript.builtins.Date.getUTCFullYear --- {{JSRef}} The **`getUTCFullYear()`** method of {{jsxref("Date")}} instances returns the year for this date acco...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date/gettimezoneoffset/index.md
--- title: Date.prototype.getTimezoneOffset() slug: Web/JavaScript/Reference/Global_Objects/Date/getTimezoneOffset page-type: javascript-instance-method browser-compat: javascript.builtins.Date.getTimezoneOffset --- {{JSRef}} The **`getTimezoneOffset()`** method of {{jsxref("Date")}} instances returns the difference,...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date/setseconds/index.md
--- title: Date.prototype.setSeconds() slug: Web/JavaScript/Reference/Global_Objects/Date/setSeconds page-type: javascript-instance-method browser-compat: javascript.builtins.Date.setSeconds --- {{JSRef}} The **`setSeconds()`** method of {{jsxref("Date")}} instances changes the seconds and/or milliseconds for this da...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date/setfullyear/index.md
--- title: Date.prototype.setFullYear() slug: Web/JavaScript/Reference/Global_Objects/Date/setFullYear page-type: javascript-instance-method browser-compat: javascript.builtins.Date.setFullYear --- {{JSRef}} The **`setFullYear()`** method of {{jsxref("Date")}} instances changes the year, month, and/or day of month fo...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date/getutcminutes/index.md
--- title: Date.prototype.getUTCMinutes() slug: Web/JavaScript/Reference/Global_Objects/Date/getUTCMinutes page-type: javascript-instance-method browser-compat: javascript.builtins.Date.getUTCMinutes --- {{JSRef}} The **`getUTCMinutes()`** method of {{jsxref("Date")}} instances returns the minutes for this date accor...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date/utc/index.md
--- title: Date.UTC() slug: Web/JavaScript/Reference/Global_Objects/Date/UTC page-type: javascript-static-method browser-compat: javascript.builtins.Date.UTC --- {{JSRef}} The **`Date.UTC()`** static method accepts parameters representing the date and time components similar to the {{jsxref("Date")}} constructor, but...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date/getfullyear/index.md
--- title: Date.prototype.getFullYear() slug: Web/JavaScript/Reference/Global_Objects/Date/getFullYear page-type: javascript-instance-method browser-compat: javascript.builtins.Date.getFullYear --- {{JSRef}} The **`getFullYear()`** method of {{jsxref("Date")}} instances returns the year for this date according to loc...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date/setutchours/index.md
--- title: Date.prototype.setUTCHours() slug: Web/JavaScript/Reference/Global_Objects/Date/setUTCHours page-type: javascript-instance-method browser-compat: javascript.builtins.Date.setUTCHours --- {{JSRef}} The **`setUTCHours()`** method of {{jsxref("Date")}} instances changes the hours, minutes, seconds, and/or mil...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date/gettime/index.md
--- title: Date.prototype.getTime() slug: Web/JavaScript/Reference/Global_Objects/Date/getTime page-type: javascript-instance-method browser-compat: javascript.builtins.Date.getTime --- {{JSRef}} The **`getTime()`** method of {{jsxref("Date")}} instances returns the number of milliseconds for this date since the [epo...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date/toutcstring/index.md
--- title: Date.prototype.toUTCString() slug: Web/JavaScript/Reference/Global_Objects/Date/toUTCString page-type: javascript-instance-method browser-compat: javascript.builtins.Date.toUTCString --- {{JSRef}} The **`toUTCString()`** method of {{jsxref("Date")}} instances returns a string representing this date in the ...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date/valueof/index.md
--- title: Date.prototype.valueOf() slug: Web/JavaScript/Reference/Global_Objects/Date/valueOf page-type: javascript-instance-method browser-compat: javascript.builtins.Date.valueOf --- {{JSRef}} The **`valueOf()`** method of {{jsxref("Date")}} instances returns the number of milliseconds for this date since the [epo...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date/date/index.md
--- title: Date() constructor slug: Web/JavaScript/Reference/Global_Objects/Date/Date page-type: javascript-constructor browser-compat: javascript.builtins.Date.Date --- {{JSRef}} The **`Date()`** constructor creates {{jsxref("Date")}} objects. When called as a function, it returns a string representing the current t...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date/getutcmonth/index.md
--- title: Date.prototype.getUTCMonth() slug: Web/JavaScript/Reference/Global_Objects/Date/getUTCMonth page-type: javascript-instance-method browser-compat: javascript.builtins.Date.getUTCMonth --- {{JSRef}} The **`getUTCMonth()`** method of {{jsxref("Date")}} instances returns the month for this date according to un...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date/setyear/index.md
--- title: Date.prototype.setYear() slug: Web/JavaScript/Reference/Global_Objects/Date/setYear page-type: javascript-instance-method status: - deprecated browser-compat: javascript.builtins.Date.setYear --- {{JSRef}} {{Deprecated_Header}} The **`setYear()`** method of {{jsxref("Date")}} instances sets the year for ...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date/tolocalestring/index.md
--- title: Date.prototype.toLocaleString() slug: Web/JavaScript/Reference/Global_Objects/Date/toLocaleString page-type: javascript-instance-method browser-compat: javascript.builtins.Date.toLocaleString --- {{JSRef}} The **`toLocaleString()`** method of {{jsxref("Date")}} instances returns a string with a language-se...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date/getyear/index.md
--- title: Date.prototype.getYear() slug: Web/JavaScript/Reference/Global_Objects/Date/getYear page-type: javascript-instance-method status: - deprecated browser-compat: javascript.builtins.Date.getYear --- {{JSRef}} {{Deprecated_Header}} The **`getYear()`** method of {{jsxref("Date")}} instances returns the year f...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date/toisostring/index.md
--- title: Date.prototype.toISOString() slug: Web/JavaScript/Reference/Global_Objects/Date/toISOString page-type: javascript-instance-method browser-compat: javascript.builtins.Date.toISOString --- {{JSRef}} The **`toISOString()`** method of {{jsxref("Date")}} instances returns a string representing this date in the ...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date/getutcday/index.md
--- title: Date.prototype.getUTCDay() slug: Web/JavaScript/Reference/Global_Objects/Date/getUTCDay page-type: javascript-instance-method browser-compat: javascript.builtins.Date.getUTCDay --- {{JSRef}} The **`getUTCDay()`** method of {{jsxref("Date")}} instances returns the day of the week for this date according to ...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date/tojson/index.md
--- title: Date.prototype.toJSON() slug: Web/JavaScript/Reference/Global_Objects/Date/toJSON page-type: javascript-instance-method browser-compat: javascript.builtins.Date.toJSON --- {{JSRef}} The **`toJSON()`** method of {{jsxref("Date")}} instances returns a string representing this date in the same ISO format as {...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date/gethours/index.md
--- title: Date.prototype.getHours() slug: Web/JavaScript/Reference/Global_Objects/Date/getHours page-type: javascript-instance-method browser-compat: javascript.builtins.Date.getHours --- {{JSRef}} The **`getHours()`** method of {{jsxref("Date")}} instances returns the hours for this date according to local time. {...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date/sethours/index.md
--- title: Date.prototype.setHours() slug: Web/JavaScript/Reference/Global_Objects/Date/setHours page-type: javascript-instance-method browser-compat: javascript.builtins.Date.setHours --- {{JSRef}} The **`setHours()`** method of {{jsxref("Date")}} instances changes the hours, minutes, seconds, and/or milliseconds fo...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date
data/mdn-content/files/en-us/web/javascript/reference/global_objects/date/setmilliseconds/index.md
--- title: Date.prototype.setMilliseconds() slug: Web/JavaScript/Reference/Global_Objects/Date/setMilliseconds page-type: javascript-instance-method browser-compat: javascript.builtins.Date.setMilliseconds --- {{JSRef}} The **`setMilliseconds()`** method of {{jsxref("Date")}} instances changes the milliseconds for th...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object/index.md
--- title: Object slug: Web/JavaScript/Reference/Global_Objects/Object page-type: javascript-class browser-compat: javascript.builtins.Object --- {{JSRef}} The **`Object`** type represents one of [JavaScript's data types](/en-US/docs/Web/JavaScript/Data_structures). It is used to store various keyed collections and m...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object/propertyisenumerable/index.md
--- title: Object.prototype.propertyIsEnumerable() slug: Web/JavaScript/Reference/Global_Objects/Object/propertyIsEnumerable page-type: javascript-instance-method browser-compat: javascript.builtins.Object.propertyIsEnumerable --- {{JSRef}} The **`propertyIsEnumerable()`** method of {{jsxref("Object")}} instances ret...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object/issealed/index.md
--- title: Object.isSealed() slug: Web/JavaScript/Reference/Global_Objects/Object/isSealed page-type: javascript-static-method browser-compat: javascript.builtins.Object.isSealed --- {{JSRef}} The **`Object.isSealed()`** static method determines if an object is sealed. {{EmbedInteractiveExample("pages/js/object-isse...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object/groupby/index.md
--- title: Object.groupBy() slug: Web/JavaScript/Reference/Global_Objects/Object/groupBy page-type: javascript-static-method browser-compat: javascript.builtins.Object.groupBy --- {{JSRef}} > **Note:** In some versions of some browsers, this method was implemented as the method `Array.prototype.group()`. Due to web c...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object/tostring/index.md
--- title: Object.prototype.toString() slug: Web/JavaScript/Reference/Global_Objects/Object/toString page-type: javascript-instance-method browser-compat: javascript.builtins.Object.toString --- {{JSRef}} The **`toString()`** method of {{jsxref("Object")}} instances returns a string representing this object. This met...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object/__definegetter__/index.md
--- title: Object.prototype.__defineGetter__() slug: Web/JavaScript/Reference/Global_Objects/Object/__defineGetter__ page-type: javascript-instance-method status: - deprecated browser-compat: javascript.builtins.Object.defineGetter --- {{JSRef}}{{Deprecated_Header}} > **Note:** This feature is deprecated in favor o...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object/create/index.md
--- title: Object.create() slug: Web/JavaScript/Reference/Global_Objects/Object/create page-type: javascript-static-method browser-compat: javascript.builtins.Object.create --- {{JSRef}} The **`Object.create()`** static method creates a new object, using an existing object as the prototype of the newly created object...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object/setprototypeof/index.md
--- title: Object.setPrototypeOf() slug: Web/JavaScript/Reference/Global_Objects/Object/setPrototypeOf page-type: javascript-static-method browser-compat: javascript.builtins.Object.setPrototypeOf --- {{JSRef}} The **`Object.setPrototypeOf()`** static method sets the prototype (i.e., the internal `[[Prototype]]` prop...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object/fromentries/index.md
--- title: Object.fromEntries() slug: Web/JavaScript/Reference/Global_Objects/Object/fromEntries page-type: javascript-static-method browser-compat: javascript.builtins.Object.fromEntries --- {{JSRef}} The **`Object.fromEntries()`** static method transforms a list of key-value pairs into an object. {{EmbedInteractiv...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object/hasownproperty/index.md
--- title: Object.prototype.hasOwnProperty() slug: Web/JavaScript/Reference/Global_Objects/Object/hasOwnProperty page-type: javascript-instance-method browser-compat: javascript.builtins.Object.hasOwnProperty --- {{JSRef}} The **`hasOwnProperty()`** method of {{jsxref("Object")}} instances returns a boolean indicatin...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object/getownpropertysymbols/index.md
--- title: Object.getOwnPropertySymbols() slug: Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertySymbols page-type: javascript-static-method browser-compat: javascript.builtins.Object.getOwnPropertySymbols --- {{JSRef}} The **`Object.getOwnPropertySymbols()`** static method returns an array of all symbol ...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object/isprototypeof/index.md
--- title: Object.prototype.isPrototypeOf() slug: Web/JavaScript/Reference/Global_Objects/Object/isPrototypeOf page-type: javascript-instance-method browser-compat: javascript.builtins.Object.isPrototypeOf --- {{JSRef}} The **`isPrototypeOf()`** method of {{jsxref("Object")}} instances checks if this object exists in...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object/defineproperties/index.md
--- title: Object.defineProperties() slug: Web/JavaScript/Reference/Global_Objects/Object/defineProperties page-type: javascript-static-method browser-compat: javascript.builtins.Object.defineProperties --- {{JSRef}} The **`Object.defineProperties()`** static method defines new or modifies existing properties directl...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object/keys/index.md
--- title: Object.keys() slug: Web/JavaScript/Reference/Global_Objects/Object/keys page-type: javascript-static-method browser-compat: javascript.builtins.Object.keys --- {{JSRef}} The **`Object.keys()`** static method returns an array of a given object's own enumerable string-keyed property names. {{EmbedInteractiv...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object/__definesetter__/index.md
--- title: Object.prototype.__defineSetter__() slug: Web/JavaScript/Reference/Global_Objects/Object/__defineSetter__ page-type: javascript-instance-method status: - deprecated browser-compat: javascript.builtins.Object.defineSetter --- {{JSRef}}{{Deprecated_Header}} > **Note:** This feature is deprecated in favor o...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object/getownpropertydescriptors/index.md
--- title: Object.getOwnPropertyDescriptors() slug: Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptors page-type: javascript-static-method browser-compat: javascript.builtins.Object.getOwnPropertyDescriptors --- {{JSRef}} The **`Object.getOwnPropertyDescriptors()`** static method returns all own...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object/hasown/index.md
--- title: Object.hasOwn() slug: Web/JavaScript/Reference/Global_Objects/Object/hasOwn page-type: javascript-static-method browser-compat: javascript.builtins.Object.hasOwn --- {{JSRef}} The **`Object.hasOwn()`** static method returns `true` if the specified object has the indicated property as its _own_ property. If...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object/proto/index.md
--- title: Object.prototype.__proto__ slug: Web/JavaScript/Reference/Global_Objects/Object/proto page-type: javascript-instance-accessor-property status: - deprecated browser-compat: javascript.builtins.Object.proto --- {{JSRef}}{{Deprecated_Header}} > **Warning:** Changing the `[[Prototype]]` of an object is, by t...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object/assign/index.md
--- title: Object.assign() slug: Web/JavaScript/Reference/Global_Objects/Object/assign page-type: javascript-static-method browser-compat: javascript.builtins.Object.assign --- {{JSRef}} The **`Object.assign()`** static method copies all {{jsxref("Object/propertyIsEnumerable", "enumerable", "", 1)}} {{jsxref("Object/...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object/is/index.md
--- title: Object.is() slug: Web/JavaScript/Reference/Global_Objects/Object/is page-type: javascript-static-method browser-compat: javascript.builtins.Object.is --- {{JSRef}} The **`Object.is()`** static method determines whether two values are [the same value](/en-US/docs/Web/JavaScript/Equality_comparisons_and_same...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object/getownpropertydescriptor/index.md
--- title: Object.getOwnPropertyDescriptor() slug: Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptor page-type: javascript-static-method browser-compat: javascript.builtins.Object.getOwnPropertyDescriptor --- {{JSRef}} The **`Object.getOwnPropertyDescriptor()`** static method returns an object d...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object/getprototypeof/index.md
--- title: Object.getPrototypeOf() slug: Web/JavaScript/Reference/Global_Objects/Object/getPrototypeOf page-type: javascript-static-method browser-compat: javascript.builtins.Object.getPrototypeOf --- {{JSRef}} The **`Object.getPrototypeOf()`** static method returns the prototype (i.e. the value of the internal `[[Pr...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object/values/index.md
--- title: Object.values() slug: Web/JavaScript/Reference/Global_Objects/Object/values page-type: javascript-static-method browser-compat: javascript.builtins.Object.values --- {{JSRef}} The **`Object.values()`** static method returns an array of a given object's own enumerable string-keyed property values. {{EmbedI...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object/isextensible/index.md
--- title: Object.isExtensible() slug: Web/JavaScript/Reference/Global_Objects/Object/isExtensible page-type: javascript-static-method browser-compat: javascript.builtins.Object.isExtensible --- {{JSRef}} The **`Object.isExtensible()`** static method determines if an object is extensible (whether it can have new prop...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object/freeze/index.md
--- title: Object.freeze() slug: Web/JavaScript/Reference/Global_Objects/Object/freeze page-type: javascript-static-method browser-compat: javascript.builtins.Object.freeze --- {{JSRef}} The **`Object.freeze()`** static method _freezes_ an object. Freezing an object [prevents extensions](/en-US/docs/Web/JavaScript/Re...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object/__lookupsetter__/index.md
--- title: Object.prototype.__lookupSetter__() slug: Web/JavaScript/Reference/Global_Objects/Object/__lookupSetter__ page-type: javascript-instance-method status: - deprecated browser-compat: javascript.builtins.Object.lookupSetter --- {{JSRef}} {{Deprecated_Header}} > **Note:** This feature is deprecated in favor ...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object/isfrozen/index.md
--- title: Object.isFrozen() slug: Web/JavaScript/Reference/Global_Objects/Object/isFrozen page-type: javascript-static-method browser-compat: javascript.builtins.Object.isFrozen --- {{JSRef}} The **`Object.isFrozen()`** static method determines if an object is {{jsxref("Object/freeze", "frozen", "", 1)}}. {{EmbedIn...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object/valueof/index.md
--- title: Object.prototype.valueOf() slug: Web/JavaScript/Reference/Global_Objects/Object/valueOf page-type: javascript-instance-method browser-compat: javascript.builtins.Object.valueOf --- {{JSRef}} The **`valueOf()`** method of {{jsxref("Object")}} instances converts the `this` value [to an object](/en-US/docs/We...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object/constructor/index.md
--- title: Object.prototype.constructor slug: Web/JavaScript/Reference/Global_Objects/Object/constructor page-type: javascript-instance-data-property browser-compat: javascript.builtins.Object.constructor --- {{JSRef}} The **`constructor`** data property of an {{jsxref("Object")}} instance returns a reference to the ...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object/preventextensions/index.md
--- title: Object.preventExtensions() slug: Web/JavaScript/Reference/Global_Objects/Object/preventExtensions page-type: javascript-static-method browser-compat: javascript.builtins.Object.preventExtensions --- {{JSRef}} The **`Object.preventExtensions()`** static method prevents new properties from ever being added t...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object/object/index.md
--- title: Object() constructor slug: Web/JavaScript/Reference/Global_Objects/Object/Object page-type: javascript-constructor browser-compat: javascript.builtins.Object.Object --- {{JSRef}} The **`Object()`** constructor turns the input into an object. Its behavior depends on the input's type. ## Syntax ```js-nolin...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object/tolocalestring/index.md
--- title: Object.prototype.toLocaleString() slug: Web/JavaScript/Reference/Global_Objects/Object/toLocaleString page-type: javascript-instance-method browser-compat: javascript.builtins.Object.toLocaleString --- {{JSRef}} The **`toLocaleString()`** method of {{jsxref("Object")}} instances returns a string representi...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object/__lookupgetter__/index.md
--- title: Object.prototype.__lookupGetter__() slug: Web/JavaScript/Reference/Global_Objects/Object/__lookupGetter__ page-type: javascript-instance-method status: - deprecated browser-compat: javascript.builtins.Object.lookupGetter --- {{JSRef}} {{Deprecated_Header}} > **Note:** This feature is deprecated in favor ...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object/defineproperty/index.md
--- title: Object.defineProperty() slug: Web/JavaScript/Reference/Global_Objects/Object/defineProperty page-type: javascript-static-method browser-compat: javascript.builtins.Object.defineProperty --- {{JSRef}} The **`Object.defineProperty()`** static method defines a new property directly on an object, or modifies a...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object/getownpropertynames/index.md
--- title: Object.getOwnPropertyNames() slug: Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyNames page-type: javascript-static-method browser-compat: javascript.builtins.Object.getOwnPropertyNames --- {{JSRef}} The **`Object.getOwnPropertyNames()`** static method returns an array of all properties (inc...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object/seal/index.md
--- title: Object.seal() slug: Web/JavaScript/Reference/Global_Objects/Object/seal page-type: javascript-static-method browser-compat: javascript.builtins.Object.seal --- {{JSRef}} The **`Object.seal()`** static method _seals_ an object. Sealing an object [prevents extensions](/en-US/docs/Web/JavaScript/Reference/Glo...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object
data/mdn-content/files/en-us/web/javascript/reference/global_objects/object/entries/index.md
--- title: Object.entries() slug: Web/JavaScript/Reference/Global_Objects/Object/entries page-type: javascript-static-method browser-compat: javascript.builtins.Object.entries --- {{JSRef}} The **`Object.entries()`** static method returns an array of a given object's own enumerable string-keyed property key-value pai...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects
data/mdn-content/files/en-us/web/javascript/reference/global_objects/aggregateerror/index.md
--- title: AggregateError slug: Web/JavaScript/Reference/Global_Objects/AggregateError page-type: javascript-class browser-compat: javascript.builtins.AggregateError --- {{JSRef}} The **`AggregateError`** object represents an error when several errors need to be wrapped in a single error. It is thrown when multiple e...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/aggregateerror
data/mdn-content/files/en-us/web/javascript/reference/global_objects/aggregateerror/errors/index.md
--- title: "AggregateError: errors" slug: Web/JavaScript/Reference/Global_Objects/AggregateError/errors page-type: javascript-instance-data-property browser-compat: javascript.builtins.AggregateError.errors --- {{JSRef}} The **`errors`** data property of an {{jsxref("AggregateError")}} instance contains an array repr...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/aggregateerror
data/mdn-content/files/en-us/web/javascript/reference/global_objects/aggregateerror/aggregateerror/index.md
--- title: AggregateError() constructor slug: Web/JavaScript/Reference/Global_Objects/AggregateError/AggregateError page-type: javascript-constructor browser-compat: javascript.builtins.AggregateError.AggregateError --- {{JSRef}} The **`AggregateError()`** constructor creates {{jsxref("AggregateError")}} objects. ##...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects
data/mdn-content/files/en-us/web/javascript/reference/global_objects/asyncfunction/index.md
--- title: AsyncFunction slug: Web/JavaScript/Reference/Global_Objects/AsyncFunction page-type: javascript-class browser-compat: javascript.builtins.AsyncFunction --- {{JSRef}} The **`AsyncFunction`** object provides methods for [async functions](/en-US/docs/Web/JavaScript/Reference/Statements/async_function). In Jav...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/asyncfunction
data/mdn-content/files/en-us/web/javascript/reference/global_objects/asyncfunction/asyncfunction/index.md
--- title: AsyncFunction() constructor slug: Web/JavaScript/Reference/Global_Objects/AsyncFunction/AsyncFunction page-type: javascript-constructor browser-compat: javascript.builtins.AsyncFunction.AsyncFunction --- {{JSRef}} The **`AsyncFunction()`** constructor creates {{jsxref("AsyncFunction")}} objects. Note that...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/index.md
--- title: String slug: Web/JavaScript/Reference/Global_Objects/String page-type: javascript-class browser-compat: javascript.builtins.String --- {{JSRef}} The **`String`** object is used to represent and manipulate a sequence of characters. ## Description Strings are useful for holding data that can be represented...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/codepointat/index.md
--- title: String.prototype.codePointAt() slug: Web/JavaScript/Reference/Global_Objects/String/codePointAt page-type: javascript-instance-method browser-compat: javascript.builtins.String.codePointAt --- {{JSRef}} The **`codePointAt()`** method of {{jsxref("String")}} values returns a non-negative integer that is the...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/towellformed/index.md
--- title: String.prototype.toWellFormed() slug: Web/JavaScript/Reference/Global_Objects/String/toWellFormed page-type: javascript-instance-method browser-compat: javascript.builtins.String.toWellFormed --- {{JSRef}} The **`toWellFormed()`** method of {{jsxref("String")}} values returns a string where all [lone surro...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/matchall/index.md
--- title: String.prototype.matchAll() slug: Web/JavaScript/Reference/Global_Objects/String/matchAll page-type: javascript-instance-method browser-compat: javascript.builtins.String.matchAll --- {{JSRef}} The **`matchAll()`** method of {{jsxref("String")}} values returns an iterator of all results matching this strin...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/tolocalelowercase/index.md
--- title: String.prototype.toLocaleLowerCase() slug: Web/JavaScript/Reference/Global_Objects/String/toLocaleLowerCase page-type: javascript-instance-method browser-compat: javascript.builtins.String.toLocaleLowerCase --- {{JSRef}} The **`toLocaleLowerCase()`** method of {{jsxref("String")}} values returns this strin...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/fromcodepoint/index.md
--- title: String.fromCodePoint() slug: Web/JavaScript/Reference/Global_Objects/String/fromCodePoint page-type: javascript-static-method browser-compat: javascript.builtins.String.fromCodePoint --- {{JSRef}} The **`String.fromCodePoint()`** static method returns a string created from the specified sequence of code po...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/at/index.md
--- title: String.prototype.at() slug: Web/JavaScript/Reference/Global_Objects/String/at page-type: javascript-instance-method browser-compat: javascript.builtins.String.at --- {{JSRef}} The **`at()`** method of {{jsxref("String")}} values takes an integer value and returns a new {{jsxref("String")}} consisting of th...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/startswith/index.md
--- title: String.prototype.startsWith() slug: Web/JavaScript/Reference/Global_Objects/String/startsWith page-type: javascript-instance-method browser-compat: javascript.builtins.String.startsWith --- {{JSRef}} The **`startsWith()`** method of {{jsxref("String")}} values determines whether this string begins with the...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/match/index.md
--- title: String.prototype.match() slug: Web/JavaScript/Reference/Global_Objects/String/match page-type: javascript-instance-method browser-compat: javascript.builtins.String.match --- {{JSRef}} The **`match()`** method of {{jsxref("String")}} values retrieves the result of matching this string against a [regular ex...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/padend/index.md
--- title: String.prototype.padEnd() slug: Web/JavaScript/Reference/Global_Objects/String/padEnd page-type: javascript-instance-method browser-compat: javascript.builtins.String.padEnd --- {{JSRef}} The **`padEnd()`** method of {{jsxref("String")}} values pads this string with a given string (repeated, if needed) so ...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/endswith/index.md
--- title: String.prototype.endsWith() slug: Web/JavaScript/Reference/Global_Objects/String/endsWith page-type: javascript-instance-method browser-compat: javascript.builtins.String.endsWith --- {{JSRef}} The **`endsWith()`** method of {{jsxref("String")}} values determines whether a string ends with the characters o...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/tostring/index.md
--- title: String.prototype.toString() slug: Web/JavaScript/Reference/Global_Objects/String/toString page-type: javascript-instance-method browser-compat: javascript.builtins.String.toString --- {{JSRef}} The **`toString()`** method of {{jsxref("String")}} values returns this string value. {{EmbedInteractiveExample(...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/slice/index.md
--- title: String.prototype.slice() slug: Web/JavaScript/Reference/Global_Objects/String/slice page-type: javascript-instance-method browser-compat: javascript.builtins.String.slice --- {{JSRef}} The **`slice()`** method of {{jsxref("String")}} values extracts a section of this string and returns it as a new string, ...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/repeat/index.md
--- title: String.prototype.repeat() slug: Web/JavaScript/Reference/Global_Objects/String/repeat page-type: javascript-instance-method browser-compat: javascript.builtins.String.repeat --- {{JSRef}} The **`repeat()`** method of {{jsxref("String")}} values constructs and returns a new string which contains the specifi...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/includes/index.md
--- title: String.prototype.includes() slug: Web/JavaScript/Reference/Global_Objects/String/includes page-type: javascript-instance-method browser-compat: javascript.builtins.String.includes --- {{JSRef}} The **`includes()`** method of {{jsxref("String")}} values performs a case-sensitive search to determine whether ...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/substring/index.md
--- title: String.prototype.substring() slug: Web/JavaScript/Reference/Global_Objects/String/substring page-type: javascript-instance-method browser-compat: javascript.builtins.String.substring --- {{JSRef}} The **`substring()`** method of {{jsxref("String")}} values returns the part of this string from the start ind...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/length/index.md
--- title: "String: length" slug: Web/JavaScript/Reference/Global_Objects/String/length page-type: javascript-instance-data-property browser-compat: javascript.builtins.String.length --- {{JSRef}} The **`length`** data property of a {{jsxref("String")}} value contains the length of the string in UTF-16 code units. {...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/fontsize/index.md
--- title: String.prototype.fontsize() slug: Web/JavaScript/Reference/Global_Objects/String/fontsize page-type: javascript-instance-method status: - deprecated browser-compat: javascript.builtins.String.fontsize --- {{JSRef}} {{Deprecated_Header}} The **`fontsize()`** method of {{jsxref("String")}} values creates a...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/search/index.md
--- title: String.prototype.search() slug: Web/JavaScript/Reference/Global_Objects/String/search page-type: javascript-instance-method browser-compat: javascript.builtins.String.search --- {{JSRef}} The **`search()`** method of {{jsxref("String")}} values executes a search for a match between a regular expression and...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/split/index.md
--- title: String.prototype.split() slug: Web/JavaScript/Reference/Global_Objects/String/split page-type: javascript-instance-method browser-compat: javascript.builtins.String.split --- {{JSRef}} The **`split()`** method of {{jsxref("String")}} values takes a pattern and divides this string into an ordered list of su...
0