file
stringlengths
16
94
text
stringlengths
32
24.4k
vector
list
javascript/reference/global_objects/object/values/index.md
JavaScript - Global Objects - Object - values - Syntax: Example: Object.values(obj)
[ 0.0004980256198905408, 0.09931663423776627, -1.264655590057373, -0.5035855770111084, -0.8609099984169006, -1.9064737558364868, 0.7196472883224487, 0.7422708868980408, 0.01692930795252323, -0.9160728454589844, -0.33236515522003174, 0.41579723358154297, 0.02911505289375782, -0.09889097511768...
javascript/reference/global_objects/object/values/index.md
JavaScript - Global Objects - Object - values - Syntax - Parameters: - `obj`: An object.
[ 0.01753501035273075, -0.046623121947050095, -1.477509617805481, -0.8104983568191528, -0.5926133990287781, -1.6049851179122925, 0.2964525520801544, 0.46216917037963867, 0.5443911552429199, -0.8807266354560852, -1.3496865034103394, 0.33542898297309875, 0.1018729954957962, 0.2704257071018219,...
javascript/reference/global_objects/object/values/index.md
JavaScript - Global Objects - Object - values - Syntax - Return value: An array containing the given object's own enumerable string-keyed property values.
[ -0.30534282326698303, -0.06436365097761154, -0.7120258808135986, 0.27004528045654297, -0.7180718183517456, -1.6150906085968018, 0.6515936851501465, 0.9316222071647644, -0.2861877381801605, -0.26796063780784607, -0.708097517490387, 1.1354010105133057, -0.5256114602088928, 0.8574044704437256...
javascript/reference/global_objects/object/values/index.md
JavaScript - Global Objects - Object - values - Description: `Object.values()` returns an array whose elements are values of enumerable string-keyed properties found directly upon `object`. This is the same as iterating with a `for...in` loop, except that a `for...in` loop enumerates properties in the prototype chain ...
[ -0.6476567387580872, -0.2884719967842102, -0.9424746632575989, 0.5755711793899536, 0.03720963001251221, -1.8462908267974854, 0.3754366338253021, 0.16278116405010223, -0.7515872120857239, 0.16219556331634521, 0.011616352945566177, 0.7529926896095276, 0.17851004004478455, -0.0875152722001075...
javascript/reference/global_objects/object/values/index.md
JavaScript - Global Objects - Object - values - Examples - Using Object.values(): Example: const obj = { foo: "bar", baz: 42 }; console.log(Object.values(obj)); // ['bar', 42] // Array-like object const arrayLikeObj1 = { 0: "a", 1: "b", 2: "c" }; console.log(Object.values(arrayLikeObj1)); // ['a', 'b', 'c'] // Arra...
[ 0.2554967701435089, 0.22407586872577667, -1.1080402135849, 0.25200483202934265, -0.41620194911956787, -1.5156019926071167, 0.17842301726341248, -0.11155794560909271, -0.06521163135766983, -0.08399305492639542, -0.1952911764383316, -0.008159797638654709, -0.04243015870451927, -0.00141019362...
javascript/reference/global_objects/object/values/index.md
JavaScript - Global Objects - Object - values - Examples - Using Object.values() on primitives: Non-object arguments are coerced to objects. `undefined` and `null` cannot be coerced to objects and throw a `TypeError` upfront. Only strings may have own enumerable properties, while all other primitives return an empty a...
[ -0.5648850202560425, 0.28090015053749084, -0.4100414216518402, 0.33221435546875, -0.2809363901615143, -2.271700620651245, 1.7546532154083252, 0.036098964512348175, -0.07305367290973663, 0.20082181692123413, -0.4998522698879242, -0.7817391753196716, -0.07949277758598328, -0.938515305519104,...
javascript/reference/global_objects/object/isfrozen/index.md
JavaScript - Global Objects - Object - isFrozen: The `Object.isFrozen()` static method determines if an object is `frozen`. Example: const object = { foo: 42, }; console.log(Object.isFrozen(object)); // Expected output: false Object.freeze(object); console.log(Object.isFrozen(object)); // Expected output: true
[ -0.6383337378501892, -0.7728399038314819, -0.8519772887229919, -0.21189962327480316, -0.04451831057667732, -1.958006501197815, 0.8631104230880737, 0.1812986433506012, -0.03219369426369667, 0.31980329751968384, -0.7177485823631287, -0.9502565860748291, 0.6672199964523315, 0.2552655041217804...
javascript/reference/global_objects/object/isfrozen/index.md
JavaScript - Global Objects - Object - isFrozen - Syntax: Example: Object.isFrozen(obj)
[ -0.24448686838150024, 0.23920206725597382, -0.8608499765396118, -0.5841242074966431, -0.5384178161621094, -2.2813186645507812, 1.0685652494430542, 0.637593150138855, -0.10313598811626434, -0.5012510418891907, -0.5182534456253052, -0.46193602681159973, 0.18690280616283417, 0.365030437707901...
javascript/reference/global_objects/object/isfrozen/index.md
JavaScript - Global Objects - Object - isFrozen - Syntax - Parameters: - `obj`: The object which should be checked.
[ -0.21960431337356567, 0.2370481640100479, -1.218130111694336, -0.7527260780334473, 0.04327845573425293, -1.4819495677947998, 0.9343147873878479, -0.15731070935726166, 0.05947994813323021, 0.10850837081670761, -1.3099473714828491, -0.370403915643692, -0.05096600949764252, 1.153092622756958,...
javascript/reference/global_objects/object/isfrozen/index.md
JavaScript - Global Objects - Object - isFrozen - Syntax - Return value: A `Boolean` indicating whether or not the given object is frozen.
[ -0.6212794184684753, -0.34680140018463135, -0.6393930912017822, -0.41192522644996643, -0.4872228801250458, -1.6034843921661377, 1.0187292098999023, 0.875088632106781, -0.18561232089996338, -0.4521028697490692, -1.0862469673156738, 0.2511675953865051, 0.3383587598800659, 1.057246208190918, ...
javascript/reference/global_objects/object/isfrozen/index.md
JavaScript - Global Objects - Object - isFrozen - Description: An object is frozen if and only if it is not extensible, all its properties are non-configurable, and all its data properties (that is, properties which are not accessor properties with getter or setter components) are non-writable.
[ -0.6313108205795288, 0.05923861637711525, -0.5111774206161499, 0.20407885313034058, -0.07456906884908676, -2.1825859546661377, 0.3455680310726166, 0.7550640106201172, 0.47704389691352844, -0.2510298788547516, -0.5349960327148438, -0.4911763668060303, -0.19110915064811707, 0.425799608230590...
javascript/reference/global_objects/object/isfrozen/index.md
JavaScript - Global Objects - Object - isFrozen - Examples - Using Object.isFrozen: Example: // A new object is extensible, so it is not frozen. Object.isFrozen({}); // false // An empty object which is not extensible // is vacuously frozen. const vacuouslyFrozen = Object.preventExtensions({}); Object.isFrozen(vacuo...
[ -0.6314448118209839, -0.0013774175895377994, -0.003616711124777794, 0.3575438857078552, 0.6283183097839355, -0.7276132702827454, 0.5283362865447998, 0.6382486820220947, -0.342937707901001, -0.035352591425180435, -0.48100125789642334, -0.3505442142486572, -0.9278078675270081, 0.437987953424...
javascript/reference/global_objects/object/isfrozen/index.md
JavaScript - Global Objects - Object - isFrozen - Examples - Non-object argument: In ES5, if the argument to this method is not an object (a primitive), then it will cause a `TypeError`. In ES2015, it will return `true` without any errors if a non-object argument is passed, since primitives are, by definition, immutab...
[ -0.3324872553348541, -0.4013044536113739, -0.43250784277915955, -0.06359974294900894, 0.04570813104510307, -2.7614142894744873, 1.3677623271942139, 0.901268482208252, -0.08405783772468567, 0.21378782391548157, -0.13045835494995117, -1.027698040008545, 0.07206850498914719, -0.03903602063655...
javascript/reference/global_objects/object/is/index.md
JavaScript - Global Objects - Object - is: The `Object.is()` static method determines whether two values are the same value. Example: console.log(Object.is("1", 1)); // Expected output: false console.log(Object.is(NaN, NaN)); // Expected output: true console.log(Object.is(-0, 0)); // Expected output: false const ...
[ -1.1055587530136108, -0.7834023833274841, -1.302693247795105, 0.21223533153533936, -0.0763506144285202, -1.9091349840164185, 0.01788577437400818, 0.4998161196708679, 0.12365617603063583, 0.15842466056346893, -1.2446999549865723, -0.5754961371421814, 0.6812381148338318, -0.22726577520370483...
javascript/reference/global_objects/object/is/index.md
JavaScript - Global Objects - Object - is - Syntax: Example: Object.is(value1, value2)
[ -0.003057152032852173, -0.13085950911045074, -0.7124162912368774, -0.36458754539489746, -0.7933605313301086, -2.194293260574341, 0.1488650143146515, 0.8011402487754822, 0.14003820717334747, -1.2062525749206543, -1.0970531702041626, -0.18970268964767456, 0.18114134669303894, -0.070434458553...
javascript/reference/global_objects/object/is/index.md
JavaScript - Global Objects - Object - is - Syntax - Parameters: - `value1`: The first value to compare. - `value2`: The second value to compare.
[ -0.0834825411438942, 0.22567854821681976, -0.7884424924850464, -0.33287808299064636, -0.4984923303127289, -1.5995819568634033, 0.6347722411155701, 0.9610657691955566, 0.6113234758377075, -0.7115355730056763, -1.1891932487487793, -0.24913719296455383, -0.05203244835138321, 0.222339347004890...
javascript/reference/global_objects/object/is/index.md
JavaScript - Global Objects - Object - is - Syntax - Return value: A boolean indicating whether or not the two arguments are the same value.
[ -0.6821250915527344, -0.5584218502044678, -0.7371503710746765, -0.046480853110551834, -0.8866278529167175, -1.9700920581817627, 0.8347418308258057, 0.6636689901351929, -0.21606330573558807, -0.39778584241867065, -1.3472248315811157, 0.3786439001560211, 0.42180415987968445, 0.66408658027648...
javascript/reference/global_objects/object/is/index.md
JavaScript - Global Objects - Object - is - Description: `Object.is()` determines whether two values are the same value. Two values are the same if one of the following holds: - both `undefined` - both `null` - both `true` or both `false` - both strings of the same length with the same characters in the same order - ...
[ -0.3011278808116913, -0.23848874866962433, -0.7498679757118225, 0.5797497034072876, 0.49477818608283997, -0.9968514442443848, 0.9099041819572449, 0.4703626036643982, -0.6306255459785461, 0.3248230218887329, -0.9511910080909729, -1.085351586341858, 0.2416781187057495, 0.1416347324848175, ...
javascript/reference/global_objects/object/is/index.md
JavaScript - Global Objects - Object - is - Examples - Using Object.is(): Example: // Case 1: Evaluation result is the same as using === Object.is(25, 25); // true Object.is("foo", "foo"); // true Object.is("foo", "bar"); // false Object.is(null, null); // true Object.is(undefined, undefined); // true Object.is(windo...
[ -0.3422154188156128, 0.025137968361377716, -0.9424311518669128, -0.2481524497270584, -0.33456578850746155, -2.387593984603882, 0.3250736892223358, 0.3065146803855896, 0.2703937888145447, 0.1516023427248001, -1.176560878753662, -0.37599653005599976, 0.12673954665660858, 0.1261572539806366, ...
javascript/reference/global_objects/object/propertyisenumerable/index.md
JavaScript - Global Objects - Object - propertyIsEnumerable: The `propertyIsEnumerable()` method of `Object` instances returns a boolean indicating whether the specified property is this object's enumerable own property. Example: const object = {}; const array = []; object.foo = 42; array[0] = 42; console.log(objec...
[ -0.3299138844013214, -0.5846604108810425, -0.7168013453483582, 0.5222898125648499, -0.6838393807411194, -2.183269739151001, 0.293613463640213, 0.3567870557308197, 0.2583811283111572, 0.5512651205062866, -0.7831977605819702, 0.7522357106208801, 0.0877022072672844, -0.35267603397369385, 0....
javascript/reference/global_objects/object/propertyisenumerable/index.md
JavaScript - Global Objects - Object - propertyIsEnumerable - Syntax: Example: propertyIsEnumerable(prop)
[ -0.3558313846588135, 0.3605627119541168, -0.19079668819904327, -0.401137113571167, -1.190172791481018, -2.379453420639038, 0.5466873049736023, 0.9871314167976379, 0.16414275765419006, 0.012987869791686535, -0.7664310932159424, 0.8235993385314941, -0.17906200885772705, -0.4597131311893463, ...
javascript/reference/global_objects/object/propertyisenumerable/index.md
JavaScript - Global Objects - Object - propertyIsEnumerable - Syntax - Parameters: - `prop`: The name of the property to test. Can be a string or a `Symbol`.
[ -0.6081959009170532, -0.10729051381349564, -0.2372409552335739, -0.6713054776191711, -0.5853602886199951, -2.1747283935546875, 0.2918928563594818, 0.6391445398330688, 0.36538562178611755, -0.0330384261906147, -1.3902549743652344, 1.0209968090057373, -0.4486798942089081, 0.02054663375020027...
javascript/reference/global_objects/object/propertyisenumerable/index.md
JavaScript - Global Objects - Object - propertyIsEnumerable - Syntax - Return value: A boolean value indicating whether the specified property is enumerable and is the object's own property.
[ -0.37993884086608887, 0.16186076402664185, -0.2721579074859619, 0.44318312406539917, -0.8786698579788208, -2.304117441177368, 0.8437754511833191, 0.6123629212379456, 0.19212482869625092, 0.11788298934698105, -1.1703659296035767, 1.5599416494369507, -0.2378893792629242, 0.4688449501991272, ...
javascript/reference/global_objects/object/propertyisenumerable/index.md
JavaScript - Global Objects - Object - propertyIsEnumerable - Description: All objects that inherit from `Object.prototype` (that is, all except `null`-prototype objects) inherit the `propertyIsEnumerable()` method. This method determines if the specified property, string or symbol, is an enumerable own property of th...
[ -1.4569896459579468, -0.2248404622077942, -0.20833896100521088, 0.31408974528312683, -0.5618794560432434, -2.8388020992279053, 0.7022354602813721, 0.6888237595558167, -0.1290079951286316, -0.22771838307380676, -1.0699512958526611, 0.6119644045829773, -0.25096386671066284, -0.13778388500213...
javascript/reference/global_objects/object/propertyisenumerable/index.md
JavaScript - Global Objects - Object - propertyIsEnumerable - Examples - Using propertyIsEnumerable(): The following example shows the use of `propertyIsEnumerable()` on objects and arrays. Example: const o = {}; const a = []; o.prop = "is enumerable"; a[0] = "is enumerable"; o.propertyIsEnumerable("prop"); // true...
[ -0.3482345938682556, 0.4792839288711548, -0.41491347551345825, 0.163663849234581, -0.7955251932144165, -2.041628122329712, 0.7522846460342407, 0.8055880665779114, 0.3810879588127136, 0.3854379951953888, -0.7202538251876831, 0.7717289924621582, 0.2468070387840271, -0.7732177972793579, 0.2...
javascript/reference/global_objects/object/propertyisenumerable/index.md
JavaScript - Global Objects - Object - propertyIsEnumerable - Examples - User-defined vs. built-in objects: Most built-in properties are non-enumerable by default, while user-created object properties are often enumerable, unless explicitly designated otherwise. Example: const a = ["is enumerable"]; a.propertyIsEnu...
[ -0.4264885485172272, -0.19058533012866974, -0.600055992603302, 0.277952641248703, -0.21193665266036987, -2.1170239448547363, -0.08685492724180222, 0.4461585283279419, 0.6652199625968933, 0.843235194683075, -0.2928067147731781, 0.7819738984107971, -0.02259184792637825, -0.6195526123046875, ...
javascript/reference/global_objects/object/propertyisenumerable/index.md
JavaScript - Global Objects - Object - propertyIsEnumerable - Examples - Direct vs. inherited properties: Only enumerable own properties cause `propertyIsEnumerable()` to return `true`, although all enumerable properties, including inherited ones, are visited by the `for...in` loop. Example: const o1 = { enumerabl...
[ -0.7358811497688293, 0.7933699488639832, -0.18115130066871643, 0.3051603138446808, -0.594823956489563, -2.763044595718384, 0.09530246257781982, 0.3832860589027405, 0.1093805730342865, 0.7227764129638672, -0.24134770035743713, 0.5444180965423584, -0.36676445603370667, -0.3491632640361786, ...
javascript/reference/global_objects/object/propertyisenumerable/index.md
JavaScript - Global Objects - Object - propertyIsEnumerable - Examples - Testing symbol properties: `Symbol` properties are also supported by `propertyIsEnumerable()`. Note that most enumeration methods only visit string properties; enumerability of symbol properties is only useful when using `Object.assign()` or spre...
[ -0.9932533502578735, 0.0462527833878994, -0.08118009567260742, -0.25477728247642517, -0.5564836859703064, -2.4869332313537598, 0.5809096097946167, 0.5269919037818909, 0.23769965767860413, 0.5909909009933472, -1.2295712232589722, 0.4558738172054291, 0.09117595851421356, -0.505817711353302, ...
javascript/reference/global_objects/object/propertyisenumerable/index.md
JavaScript - Global Objects - Object - propertyIsEnumerable - Examples - Usage with null-prototype objects: Because `null`-prototype objects do not inherit from `Object.prototype`, they do not inherit the `propertyIsEnumerable()` method. You must call `Object.prototype.propertyIsEnumerable` with the object as `this` i...
[ -1.2101712226867676, 0.2755071222782135, -0.4896147549152374, 0.23283089697360992, -0.4697417914867401, -2.2860658168792725, -0.09538774192333221, 0.6976678371429443, 0.17122933268547058, 0.2884427011013031, -1.1567299365997314, 0.40582820773124695, -0.22040456533432007, -0.341639339923858...
javascript/reference/global_objects/object/getownpropertydescriptor/index.md
JavaScript - Global Objects - Object - getOwnPropertyDescriptor: The `Object.getOwnPropertyDescriptor()` static method returns an object describing the configuration of a specific property on a given object (that is, one directly present on an object and not in the object's prototype chain). The object returned is mut...
[ -1.2745696306228638, -0.6413798928260803, -1.5035072565078735, -0.33291614055633545, -0.29690980911254883, -1.481266736984253, -0.194332554936409, 0.25626692175865173, 0.5015080571174622, 0.5049896836280823, -0.9107193350791931, 0.6775562167167664, 0.1359778642654419, -0.0367199145257473, ...
javascript/reference/global_objects/object/getownpropertydescriptor/index.md
JavaScript - Global Objects - Object - getOwnPropertyDescriptor - Syntax: Example: Object.getOwnPropertyDescriptor(obj, prop)
[ -1.2131638526916504, 0.15364885330200195, -1.2835825681686401, -0.7664958834648132, -1.0437865257263184, -1.653698205947876, -0.30119580030441284, 0.4038031995296478, 0.4304995834827423, -0.28884315490722656, -0.6765589118003845, 0.3498252332210541, -0.28220105171203613, -0.139846935868263...
javascript/reference/global_objects/object/getownpropertydescriptor/index.md
JavaScript - Global Objects - Object - getOwnPropertyDescriptor - Syntax - Parameters: - `obj`: The object in which to look for the property. - `prop`: The name or `Symbol` of the property whose description is to be retrieved.
[ -1.0435353517532349, -0.18188999593257904, -1.2403031587600708, -0.5039790272712708, -0.43519502878189087, -1.3361141681671143, 0.004816805012524128, -0.1688269078731537, 0.4796008765697479, -0.26142653822898865, -1.2336325645446777, 0.7444393038749695, -0.7021155953407288, 0.4612718224525...
javascript/reference/global_objects/object/getownpropertydescriptor/index.md
JavaScript - Global Objects - Object - getOwnPropertyDescriptor - Syntax - Return value: A property descriptor of the given property if it exists on the object, `undefined` otherwise.
[ -1.0332133769989014, -0.08075937628746033, -0.5596411824226379, 0.3008146286010742, -0.7442154884338379, -1.234821081161499, 0.5926024913787842, 0.7083987593650818, 0.3931811451911926, 0.09194567799568176, -0.8900437355041504, 0.7786842584609985, -0.3943743109703064, 0.5322315096855164, ...
javascript/reference/global_objects/object/getownpropertydescriptor/index.md
JavaScript - Global Objects - Object - getOwnPropertyDescriptor - Description: This method permits examination of the precise description of a property. A property in JavaScript consists of either a string-valued name or a `Symbol` and a property descriptor. Further information about property descriptor types and thei...
[ -1.4346592426300049, -0.5323134660720825, -1.4007775783538818, 0.30855467915534973, -0.16373492777347565, -1.8219858407974243, -0.06422286480665207, 0.25063401460647583, 0.7231917381286621, -0.09161924570798874, -1.0662697553634644, 0.6855961084365845, -0.962462306022644, 0.026769353076815...
javascript/reference/global_objects/object/getownpropertydescriptor/index.md
JavaScript - Global Objects - Object - getOwnPropertyDescriptor - Examples - Using Object.getOwnPropertyDescriptor(): Example: let o, d; o = { get foo() { return 17; }, }; d = Object.getOwnPropertyDescriptor(o, "foo"); console.log(d); // { // configurable: true, // enumerable: true, // get: [Function: ...
[ -0.5965344905853271, -0.16108791530132294, -1.453872799873352, -0.2091635763645172, -0.7378919720649719, -1.2651368379592896, 0.5367372035980225, 0.5568920373916626, -0.2098858654499054, 0.08785966783761978, -0.6795948147773743, 0.31139472126960754, -0.7327284812927246, 0.33259305357933044...
javascript/reference/global_objects/object/getownpropertydescriptor/index.md
JavaScript - Global Objects - Object - getOwnPropertyDescriptor - Examples - Non-object coercion: In ES5, if the first argument to this method is not an object (a primitive), then it will cause a `TypeError`. In ES2015, a non-object first argument will be coerced to an object at first. Example: Object.getOwnProperty...
[ -0.30051225423812866, -0.2903515100479126, -0.120799221098423, 0.009952705353498459, -0.27395308017730713, -1.727798342704773, 0.3888956606388092, 0.7204312086105347, 0.07308556884527206, 0.8091806769371033, -0.3758075535297394, -0.9153034090995789, -0.506997287273407, -0.8677119612693787,...
javascript/reference/global_objects/object/entries/index.md
JavaScript - Global Objects - Object - entries: The `Object.entries()` static method returns an array of a given object's own enumerable string-keyed property key-value pairs. Example: const object = { a: "some string", b: 42, }; for (const [key, value] of Object.entries(object)) { console.log(`${key}: ${valu...
[ -0.155119851231575, -0.6333288550376892, -1.1402093172073364, 0.3965948224067688, 0.10901328176259995, -1.7158973217010498, 0.4691154956817627, 0.273897260427475, -0.14990979433059692, 0.0751686543226242, -0.36409488320350647, 0.5823730826377869, 0.32514503598213196, -0.015395522117614746,...
javascript/reference/global_objects/object/entries/index.md
JavaScript - Global Objects - Object - entries - Syntax: Example: Object.entries(obj)
[ 0.438592791557312, -0.30184903740882874, -1.1615206003189087, -0.27812597155570984, -0.8896051049232483, -2.3200488090515137, 0.49364131689071655, 0.4026380181312561, 0.03269597142934799, -0.6099546551704407, -0.4354633092880249, 0.03692450374364853, 0.06004662811756134, 0.1418347805738449...
javascript/reference/global_objects/object/entries/index.md
JavaScript - Global Objects - Object - entries - Syntax - Parameters: - `obj`: An object.
[ 0.3116663992404938, -0.19516955316066742, -1.488480567932129, -0.6915948390960693, -0.4766301214694977, -1.7197867631912231, 0.23450656235218048, 0.379495233297348, 0.5463203191757202, -0.8074707984924316, -1.4555326700210571, 0.1287146806716919, 0.10506915301084518, 0.4736047387123108, ...
javascript/reference/global_objects/object/entries/index.md
JavaScript - Global Objects - Object - entries - Syntax - Return value: An array of the given object's own enumerable string-keyed property key-value pairs. Each key-value pair is an array with two elements: the first element is the property key (which is always a string), and the second element is the property value.
[ -0.23935537040233612, 0.09330420941114426, -0.8710225224494934, 0.6581981778144836, -0.419987291097641, -1.1444545984268188, 1.194172978401184, 0.7335383892059326, -0.39857831597328186, -0.14723658561706543, -0.8611425757408142, 1.1118251085281372, -0.6343124508857727, 0.66307133436203, ...
javascript/reference/global_objects/object/entries/index.md
JavaScript - Global Objects - Object - entries - Description: `Object.entries()` returns an array whose elements are arrays corresponding to the enumerable string-keyed property key-value pairs found directly upon `object`. This is the same as iterating with a `for...in` loop, except that a `for...in` loop enumerates ...
[ -0.261526882648468, -0.41891536116600037, -0.9954032301902771, 0.6573706865310669, -0.030011842027306557, -2.0544321537017822, 0.3887757658958435, 0.015268867835402489, -0.6097827553749084, 0.38328468799591064, -0.1714765876531601, 0.6293104887008667, 0.08340425789356232, 0.020771162584424...
javascript/reference/global_objects/object/entries/index.md
JavaScript - Global Objects - Object - entries - Examples - Using Object.entries(): Example: const obj = { foo: "bar", baz: 42 }; console.log(Object.entries(obj)); // [ ['foo', 'bar'], ['baz', 42] ] const arrayLike = { 0: "a", 1: "b", 2: "c" }; console.log(Object.entries(arrayLike)); // [ ['0', 'a'], ['1', 'b'], ['2...
[ 0.5182697176933289, 0.16577917337417603, -0.9999575614929199, -0.3253803551197052, -0.304042249917984, -1.805378794670105, -0.49608364701271057, 0.09406760334968567, 0.10777710378170013, 0.06318281590938568, -0.6026069521903992, -0.6619199514389038, -0.014372133649885654, 0.612914621829986...
javascript/reference/global_objects/object/entries/index.md
JavaScript - Global Objects - Object - entries - Examples - Using Object.entries() on primitives: Non-object arguments are coerced to objects. `undefined` and `null` cannot be coerced to objects and throw a `TypeError` upfront. Only strings may have own enumerable properties, while all other primitives return an empty...
[ -0.2714882493019104, 0.1298111230134964, -0.5654531121253967, 0.30212992429733276, -0.39102086424827576, -2.5289885997772217, 1.6297796964645386, -0.09762156754732132, 0.1351841241121292, 0.3944004476070404, -0.7034971117973328, -0.7689796090126038, -0.20469626784324646, -0.791464567184448...
javascript/reference/global_objects/object/entries/index.md
JavaScript - Global Objects - Object - entries - Examples - Converting an Object to a Map: The `Map()` constructor accepts an iterable of `entries`. With `Object.entries`, you can easily convert from `Object` to `Map`: Example: const obj = { foo: "bar", baz: 42 }; const map = new Map(Object.entries(obj)); console.lo...
[ 0.4280608296394348, -0.21519175171852112, -0.9878076910972595, 0.2131093591451645, -0.1326594352722168, -2.6068201065063477, -0.0072767180390655994, -0.45716947317123413, 0.12438338994979858, 0.28861814737319946, -0.47732844948768616, -0.1328074038028717, 0.6623444557189941, -0.08643123507...
javascript/reference/global_objects/object/entries/index.md
JavaScript - Global Objects - Object - entries - Examples - Iterating through an Object: Using array destructuring, you can iterate through objects easily. Example: // Using for...of loop const obj = { a: 5, b: 7, c: 9 }; for (const [key, value] of Object.entries(obj)) { console.log(`${key} ${value}`); // "a 5", "...
[ 0.6040363311767578, -0.057409241795539856, -0.9214970469474792, 0.6447537541389465, -0.07640261203050613, -1.7816882133483887, 0.14439283311367035, -0.45028847455978394, -0.042157821357250214, 0.22062687575817108, -0.10123487561941147, -0.7362255454063416, -0.2998589873313904, 0.4134075641...
javascript/reference/global_objects/object/getownpropertysymbols/index.md
JavaScript - Global Objects - Object - getOwnPropertySymbols: The `Object.getOwnPropertySymbols()` static method returns an array of all symbol properties found directly upon a given object. Example: const object = {}; const a = Symbol("a"); const b = Symbol.for("b"); object[a] = "localSymbol"; object[b] = "globalS...
[ -0.4686910808086395, -0.20382346212863922, -1.4743486642837524, -0.2610461711883545, -0.3143225908279419, -1.839929461479187, -0.2190662920475006, 0.4887669086456299, 0.33283814787864685, 0.23574885725975037, -0.8562264442443848, 0.9430779814720154, 0.21360687911510468, -0.0654157921671867...
javascript/reference/global_objects/object/getownpropertysymbols/index.md
JavaScript - Global Objects - Object - getOwnPropertySymbols - Syntax: Example: Object.getOwnPropertySymbols(obj)
[ -0.8003692626953125, 0.518731415271759, -1.2860785722732544, -0.7481761574745178, -1.0209097862243652, -2.10064959526062, 0.07119157165288925, 0.7949250340461731, -0.029216885566711426, -0.3124513328075409, -0.8728359341621399, 0.7045987248420715, -0.4295567572116852, -0.3915219008922577, ...
javascript/reference/global_objects/object/getownpropertysymbols/index.md
JavaScript - Global Objects - Object - getOwnPropertySymbols - Syntax - Parameters: - `obj`: The object whose symbol properties are to be returned.
[ -0.7950075268745422, 0.7030501365661621, -1.334228754043579, -0.6705849766731262, -0.5802049040794373, -1.6704065799713135, 0.34500861167907715, 0.7116546034812927, -0.10570195317268372, -0.25684407353401184, -1.3260581493377686, 0.8901475071907043, -0.08152622729539871, 0.8050265908241272...
javascript/reference/global_objects/object/getownpropertysymbols/index.md
JavaScript - Global Objects - Object - getOwnPropertySymbols - Syntax - Return value: An array of all symbol properties found directly upon the given object.
[ -0.19547250866889954, 0.4250165522098541, -0.7727242112159729, 0.039096228778362274, -0.7298474311828613, -1.7663800716400146, 0.6436163187026978, 1.3670271635055542, 0.07994155585765839, -0.05552510917186737, -0.8465874791145325, 1.1827878952026367, -0.25946658849716187, 0.851935267448425...
javascript/reference/global_objects/object/getownpropertysymbols/index.md
JavaScript - Global Objects - Object - getOwnPropertySymbols - Description: Similar to `Object.getOwnPropertyNames()`, you can get all symbol properties of a given object as an array of symbols. Note that `Object.getOwnPropertyNames()` itself does not contain the symbol properties of an object and only the string prop...
[ -1.1662753820419312, 0.203940287232399, -1.3056584596633911, -0.05582785606384277, -0.3046383261680603, -1.7412153482437134, 0.504050612449646, 0.6327648758888245, -0.3839307129383087, -0.3144304156303406, -0.8858357071876526, 0.587123692035675, -0.1594269573688507, -0.30277788639068604, ...
javascript/reference/global_objects/object/getownpropertysymbols/index.md
JavaScript - Global Objects - Object - getOwnPropertySymbols - Examples - Using Object.getOwnPropertySymbols(): Example: const obj = {}; const a = Symbol("a"); const b = Symbol.for("b"); obj[a] = "localSymbol"; obj[b] = "globalSymbol"; const objectSymbols = Object.getOwnPropertySymbols(obj); console.log(objectSymb...
[ -0.3645121157169342, 0.11762987822294235, -1.024969220161438, -0.522681713104248, -0.6670727729797363, -1.9016599655151367, -0.32563379406929016, -0.06407757848501205, 0.43633440136909485, -0.09674706310033798, -0.5007585883140564, 0.755740225315094, -0.08951469510793686, -0.21507711708545...
javascript/reference/global_objects/sharedarraybuffer/index.md
JavaScript - Global Objects - SharedArrayBuffer: The `SharedArrayBuffer` object is used to represent a generic raw binary data buffer, similar to the `ArrayBuffer` object, but in a way that they can be used to create views on shared memory. A `SharedArrayBuffer` is not a Transferable Object, unlike an `ArrayBuffer` wh...
[ -0.26913830637931824, -0.14403407275676727, -2.007657051086426, 0.4155981242656708, -0.38588589429855347, -1.029712200164795, 0.4048927426338196, 1.0696501731872559, 0.6533504724502563, -0.15966632962226868, -0.6770212054252625, -0.19686803221702576, 0.2800326645374298, 0.6453801989555359,...
javascript/reference/global_objects/sharedarraybuffer/index.md
JavaScript - Global Objects - SharedArrayBuffer - Description: To share memory using `SharedArrayBuffer` objects from one agent in the cluster to another (an agent is either the web page's main program or one of its web workers), `postMessage` and structured cloning is used. The structured clone algorithm accepts `Sh...
[ -0.45279622077941895, 0.45891839265823364, -0.26836854219436646, 0.7089793086051941, 0.536032497882843, -1.1513547897338867, 0.6770474314689636, 1.0459978580474854, -0.2508818507194519, 0.22593818604946136, -0.6192172169685364, 0.2228693813085556, -0.39328131079673767, 0.9253527522087097, ...
javascript/reference/global_objects/sharedarraybuffer/index.md
JavaScript - Global Objects - SharedArrayBuffer - Description - Security requirements: Shared memory and high-resolution timers were effectively disabled at the start of 2018 in light of Spectre. In 2020, a new, secure approach has been standardized to re-enable shared memory. To use shared memory your document must ...
[ -0.11201508343219757, -0.5689932107925415, -1.6313034296035767, -0.24051940441131592, -0.4576791822910309, -0.8647680878639221, 0.1424395740032196, -0.0442376509308815, 0.8305338621139526, -0.23389680683612823, -0.8189170956611633, -0.14903604984283447, 0.4161583483219147, 0.45703706145286...
javascript/reference/global_objects/sharedarraybuffer/index.md
JavaScript - Global Objects - SharedArrayBuffer - Description - API availability: Depending on whether the above security measures are taken, the various memory-sharing APIs have different availabilities: - The `Atomics` object is always available. - `SharedArrayBuffer` objects are in principle always available, but ...
[ -0.32862964272499084, -0.49244290590286255, -0.7555233836174011, 0.37524130940437317, -0.4724862575531006, -2.193378210067749, 0.4621258080005646, 0.26588648557662964, 0.5840154886245728, 0.15046125650405884, -0.28905636072158813, -0.2174360752105713, 0.2711702883243561, 0.5264389514923096...
javascript/reference/global_objects/sharedarraybuffer/index.md
JavaScript - Global Objects - SharedArrayBuffer - Description - WebAssembly shared memory: `WebAssembly.Memory` objects can be created with the `shared` constructor flag. When this flag is set to `true`, the constructed `Memory` object can be shared between workers via `postMessage()`, just like `SharedArrayBuffer`, a...
[ 0.10816095024347305, 0.38476479053497314, -1.3527255058288574, 0.3430120646953583, -0.5555045008659363, -1.9354783296585083, 0.32588914036750793, 0.6460192203521729, 0.48528802394866943, -0.06978556513786316, -0.04117937013506889, 0.09494109451770782, 0.44059401750564575, 0.447849929332733...
javascript/reference/global_objects/sharedarraybuffer/index.md
JavaScript - Global Objects - SharedArrayBuffer - Description - Growing SharedArrayBuffers: `SharedArrayBuffer` objects can be made growable by including the `maxByteLength` option when calling the `SharedArrayBuffer()` constructor. You can query whether a `SharedArrayBuffer` is growable and what its maximum size is b...
[ -0.5008148550987244, 0.23024609684944153, -0.6793739795684814, 0.618449330329895, 0.13503679633140564, -0.4189404547214508, 0.017515523359179497, 0.5016937851905823, -0.09034871309995651, -0.31912779808044434, -0.8912398219108582, 0.3568529784679413, -0.4047831594944, 0.35104939341545105, ...
javascript/reference/global_objects/sharedarraybuffer/index.md
JavaScript - Global Objects - SharedArrayBuffer - Constructor: - `SharedArrayBuffer()`: Creates a new `SharedArrayBuffer` object.
[ -0.27493923902511597, -0.00023814282030798495, -1.630344271659851, 0.3231646716594696, -0.4257938861846924, -0.7356093525886536, -0.05040344223380089, 1.0607963800430298, 0.25393348932266235, -0.10989389568567276, -0.5596442818641663, -0.20546050369739532, -0.17448554933071136, 0.282435268...
javascript/reference/global_objects/sharedarraybuffer/index.md
JavaScript - Global Objects - SharedArrayBuffer - Static properties: - `SharedArrayBuffer[Symbol.species]`: Returns the constructor used to construct return values from `SharedArrayBuffer` methods.
[ -0.6349128484725952, 0.04088178277015686, -1.7278904914855957, 0.3218720555305481, -0.5742867588996887, -0.954226016998291, 0.5546441674232483, 1.1094006299972534, -0.16228802502155304, 0.43692126870155334, -0.8770139217376709, 0.769622266292572, 0.02498793788254261, 0.4210836589336395, ...
javascript/reference/global_objects/sharedarraybuffer/index.md
JavaScript - Global Objects - SharedArrayBuffer - Instance properties: These properties are defined on `SharedArrayBuffer.prototype` and shared by all `SharedArrayBuffer` instances. - `SharedArrayBuffer.prototype.byteLength`: The size, in bytes, of the array. This is established when the array is constructed and can ...
[ -0.1719549000263214, -0.18535077571868896, -0.48328259587287903, 0.7079317569732666, 0.11095363646745682, -1.0759546756744385, 0.3795139193534851, 1.4000204801559448, -0.004615218378603458, 0.2682867646217346, -1.2375723123550415, 0.5269394516944885, -0.11594697088003159, 0.139187410473823...
javascript/reference/global_objects/sharedarraybuffer/index.md
JavaScript - Global Objects - SharedArrayBuffer - Instance methods: - `SharedArrayBuffer.prototype.grow()`: Grows the `SharedArrayBuffer` to the specified size, in bytes. - `SharedArrayBuffer.prototype.slice()`: Returns a new `SharedArrayBuffer` whose contents are a copy of this `SharedArrayBuffer`'s bytes from `begin...
[ -1.1565245389938354, -0.2952365279197693, -1.1603301763534546, 0.3980986475944519, -0.21978318691253662, -0.06457103788852692, 0.5634228587150574, 0.3243768811225891, 0.028012730181217194, 0.13656704127788544, -0.9864301085472107, 0.7858262062072754, -0.4376489222049713, -0.009209753945469...
javascript/reference/global_objects/sharedarraybuffer/index.md
JavaScript - Global Objects - SharedArrayBuffer - Examples: Note that these examples cannot be run directly from the console or and arbitrary web page, because `SharedArrayBuffer` is not defined unless its security requirements are met.
[ 0.29474321007728577, 0.265877902507782, -1.8575619459152222, -0.009346243925392628, -0.9044942259788513, 0.08871952444314957, 0.697776198387146, 0.42099758982658386, 0.14153854548931122, -0.27140334248542786, -0.06930038332939148, 0.30136793851852417, -0.5814757347106934, -0.49050849676132...
javascript/reference/global_objects/sharedarraybuffer/index.md
JavaScript - Global Objects - SharedArrayBuffer - Examples - Creating a new SharedArrayBuffer: Example: const sab = new SharedArrayBuffer(1024);
[ 0.0710754245519638, -0.14603909850120544, -1.3981164693832397, 0.5121071934700012, -0.571648359298706, -0.37010499835014343, 0.05837712809443474, 0.5749122500419617, 0.2974605858325958, 0.41610944271087646, -0.2998673915863037, 0.18577803671360016, -0.44166597723960876, 0.21255694329738617...
javascript/reference/global_objects/sharedarraybuffer/index.md
JavaScript - Global Objects - SharedArrayBuffer - Examples - Slicing the SharedArrayBuffer: Example: sab.slice(); // SharedArrayBuffer { byteLength: 1024 } sab.slice(2); // SharedArrayBuffer { byteLength: 1022 } sab.slice(-2); // SharedArrayBuffer { byteLength: 2 } sab.slice(0, 1); // SharedArrayBuffer { byteLength: ...
[ -1.0361568927764893, 0.3142874538898468, -1.0702731609344482, 0.18585576117038727, -0.15683391690254211, 0.11398454755544662, 0.34074321389198303, -0.048466358333826065, -0.5962411165237427, 0.38898566365242004, -0.3306577503681183, 0.5110777020454407, -0.28309789299964905, -0.045717507600...
javascript/reference/global_objects/sharedarraybuffer/index.md
JavaScript - Global Objects - SharedArrayBuffer - Examples - Using it in a WebGL buffer: Example: const canvas = document.querySelector("canvas"); const gl = canvas.getContext("webgl"); const buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); gl.bufferData(gl.ARRAY_BUFFER, sab, gl.STATIC_DRAW);
[ -0.9785728454589844, 0.38478410243988037, -0.982257068157196, 0.26252487301826477, -0.34980112314224243, -0.6030965447425842, 0.05716058239340782, 0.6876979470252991, 0.23561225831508636, 0.037376437336206436, -0.31666049361228943, 0.16561561822891235, 0.1797574758529663, 0.286631256341934...
javascript/reference/global_objects/sharedarraybuffer/symbol.species/index.md
JavaScript - Global Objects - SharedArrayBuffer - Symbol.species: The `SharedArrayBuffer[Symbol.species]` static accessor property returns the constructor used to construct return values from `SharedArrayBuffer` methods. Warning: The existence of `[Symbol.species]` allows execution of arbitrary code and may create se...
[ -1.0098423957824707, -0.5835146903991699, -1.78826105594635, 0.6000960469245911, -0.6920465230941772, -1.05572509765625, 1.1180814504623413, 1.0737826824188232, -0.08639778941869736, 0.3924562335014343, -0.7241929769515991, 0.6161712408065796, -0.049581579864025116, 0.3994520902633667, 0...
javascript/reference/global_objects/sharedarraybuffer/symbol.species/index.md
JavaScript - Global Objects - SharedArrayBuffer - Symbol.species - Syntax: Example: SharedArrayBuffer[Symbol.species]
[ -0.1419868767261505, -0.03980264440178871, -1.6550471782684326, -0.1251598596572876, -1.1609224081039429, -1.586499571800232, 0.19168905913829803, 1.2848142385482788, 0.27549076080322266, -0.568551242351532, -0.3742135763168335, 0.48095449805259705, -0.19325849413871765, 0.4649260044097900...
javascript/reference/global_objects/sharedarraybuffer/symbol.species/index.md
JavaScript - Global Objects - SharedArrayBuffer - Symbol.species - Syntax - Return value: The value of the constructor (`this`) on which `get [Symbol.species]` was called. The return value is used to construct return values from array buffer methods that create new array buffer.
[ -0.598751962184906, 0.01107480376958847, -1.3178164958953857, 0.7166540622711182, -0.8221563100814819, -1.567352533340454, 0.5072745680809021, 1.4789674282073975, -0.02618587762117386, 0.1010885089635849, -0.6318045854568481, 1.1102536916732788, -0.3636573553085327, 1.0179286003112793, 0...
javascript/reference/global_objects/sharedarraybuffer/symbol.species/index.md
JavaScript - Global Objects - SharedArrayBuffer - Symbol.species - Description: The `[Symbol.species]` accessor property returns the default constructor for `SharedArrayBuffer` objects. Subclass constructors may override it to change the constructor assignment. The default implementation is basically: Example: // Hy...
[ -0.9780345559120178, -0.7370324730873108, -1.7656981945037842, 0.6070521473884583, -0.29126161336898804, -0.9985605478286743, 0.7126556038856506, 0.7267537713050842, 0.3028426468372345, 0.01643017679452896, -0.511093258857727, 0.5665143728256226, -0.4190322756767273, 0.4382959306240082, ...
javascript/reference/global_objects/sharedarraybuffer/symbol.species/index.md
JavaScript - Global Objects - SharedArrayBuffer - Symbol.species - Examples - Species in ordinary objects: The `[Symbol.species]` property returns the default constructor function, which is the `SharedArrayBuffer` constructor for `SharedArrayBuffer`. Example: SharedArrayBuffer[Symbol.species]; // function SharedArra...
[ -0.7988521456718445, 0.029786057770252228, -2.1549317836761475, 0.2664271295070648, -0.4552866220474243, -0.8191788792610168, 0.12627075612545013, 0.8980835676193237, -0.2206631749868393, 0.008949283510446548, -0.25240594148635864, 0.6283041834831238, -0.1762479990720749, 0.284514695405960...
javascript/reference/global_objects/sharedarraybuffer/symbol.species/index.md
JavaScript - Global Objects - SharedArrayBuffer - Symbol.species - Examples - Species in derived objects: In an instance of a custom `SharedArrayBuffer` subclass, such as `MySharedArrayBuffer`, the `MySharedArrayBuffer` species is the `MySharedArrayBuffer` constructor. However, you might want to overwrite this, in ord...
[ -0.5871784090995789, -0.5771862268447876, -0.677895188331604, 0.9338760375976562, 0.3990600109100342, -0.6005229949951172, 0.34790319204330444, 1.1773021221160889, -0.7020606398582458, 0.36338168382644653, -0.528206467628479, 0.9640971422195435, -0.23434659838676453, 0.5158369541168213, ...
javascript/reference/global_objects/sharedarraybuffer/bytelength/index.md
JavaScript - Global Objects - SharedArrayBuffer - byteLength: The `byteLength` accessor property of `SharedArrayBuffer` instances returns the length (in bytes) of this `SharedArrayBuffer`.
[ 0.003514427924528718, -0.3070635199546814, -1.524377703666687, 0.1436053216457367, -0.18999789655208588, -0.5554860830307007, 0.13718032836914062, -0.052102718502283096, -0.1458463966846466, -0.15979266166687012, -0.9565190076828003, 0.29877689480781555, -0.1786859929561615, 0.553718030452...
javascript/reference/global_objects/sharedarraybuffer/bytelength/index.md
JavaScript - Global Objects - SharedArrayBuffer - byteLength - Description: The `byteLength` property is an accessor property whose set accessor function is `undefined`, meaning that you can only read this property. The value is established when the shared array is constructed and cannot be changed.
[ -0.6733444333076477, -0.1941109448671341, -1.1829485893249512, 0.668179452419281, 0.24513021111488342, -1.0975542068481445, 0.23408852517604828, 0.7634769678115845, 0.3275407552719116, -0.5274587869644165, -0.4775889217853546, 0.023585528135299683, -0.37626734375953674, -0.0052698808722198...
javascript/reference/global_objects/sharedarraybuffer/bytelength/index.md
JavaScript - Global Objects - SharedArrayBuffer - byteLength - Examples: Note that these examples cannot be run directly from the console or an arbitrary web page, because `SharedArrayBuffer` is not defined unless its security requirements are met.
[ 0.12168564647436142, 0.2905005216598511, -1.7809858322143555, 0.080962635576725, -0.6979011297225952, -0.03287925943732262, 0.5428823232650757, 0.2684294879436493, -0.0544096976518631, -0.37874895334243774, -0.3139497935771942, 0.4933742582798004, -0.5216585397720337, -0.5174979567527771, ...
javascript/reference/global_objects/sharedarraybuffer/bytelength/index.md
JavaScript - Global Objects - SharedArrayBuffer - byteLength - Examples - Using byteLength: Example: const sab = new SharedArrayBuffer(1024); sab.byteLength; // 1024
[ -0.3027018904685974, -0.3291780948638916, -1.391900658607483, 0.054864317178726196, -0.31743183732032776, -0.6457229852676392, -0.014722547493875027, -0.014632850885391235, -0.20408181846141815, 0.07725031673908234, -0.6455426812171936, 0.3704005479812622, -0.49615585803985596, -0.04062303...
javascript/reference/global_objects/sharedarraybuffer/grow/index.md
JavaScript - Global Objects - SharedArrayBuffer - grow: The `grow()` method of `SharedArrayBuffer` instances grows the `SharedArrayBuffer` to the specified size, in bytes.
[ 0.09420134127140045, 0.34933149814605713, -1.7963025569915771, 0.12698136270046234, -0.8323054313659668, -0.631705641746521, 0.22494849562644958, -0.15397880971431732, -0.304907888174057, -0.29207032918930054, -0.6715524792671204, 0.538468062877655, -0.7425464987754822, 0.2761537730693817,...
javascript/reference/global_objects/sharedarraybuffer/grow/index.md
JavaScript - Global Objects - SharedArrayBuffer - grow - Syntax: Example: grow(newLength)
[ -0.5835458040237427, 0.1892850697040558, -1.5507996082305908, -0.10855109244585037, -1.140963077545166, -1.2718591690063477, -0.21324852108955383, 0.6344866752624512, -0.3995343744754791, -0.5572412014007568, -0.6690871119499207, 0.3480672836303711, -0.9117107391357422, 0.49843794107437134...
javascript/reference/global_objects/sharedarraybuffer/grow/index.md
JavaScript - Global Objects - SharedArrayBuffer - grow - Syntax - Parameters: - `newLength`: The new length, in bytes, to resize the `SharedArrayBuffer` to.
[ -0.025047119706869125, 0.24794812500476837, -1.7347352504730225, -0.13491545617580414, -0.576198399066925, -0.9141607880592346, 0.1789749562740326, 0.2041289508342743, 0.16709931194782257, -0.4325932562351227, -1.1342458724975586, 0.3441145718097687, -0.47311675548553467, 0.541719853878021...
javascript/reference/global_objects/sharedarraybuffer/grow/index.md
JavaScript - Global Objects - SharedArrayBuffer - grow - Syntax - Return value: None (`undefined`).
[ -0.5741816163063049, 0.7313877940177917, -1.4094300270080566, -0.20402325689792633, -1.1485106945037842, -0.44582071900367737, 0.7004554867744446, 0.9298824667930603, -0.5456997156143188, 0.0027719566132873297, -0.37253066897392273, 0.24896033108234406, -0.7795345187187195, 0.3852287232875...
javascript/reference/global_objects/sharedarraybuffer/grow/index.md
JavaScript - Global Objects - SharedArrayBuffer - grow - Syntax - Exceptions: - `TypeError`: Thrown if the `SharedArrayBuffer` is not growable. - `RangeError`: Thrown if `newLength` is larger than the `maxByteLength` of the `SharedArrayBuffer` or smaller than the `byteLength`.
[ -0.641666829586029, 0.025907304137945175, -1.1334370374679565, 0.5317421555519104, -0.5712505578994751, -1.0865049362182617, -0.5859755277633667, 0.8759834170341492, -0.4659297466278076, 0.007442868314683437, -0.4803139567375183, 0.15125979483127594, -0.8435183763504028, 0.056975107640028,...
javascript/reference/global_objects/sharedarraybuffer/grow/index.md
JavaScript - Global Objects - SharedArrayBuffer - grow - Description: The `grow()` method grows a `SharedArrayBuffer` to the size specified by the `newLength` parameter, provided that the `SharedArrayBuffer` is growable and the new size is less than or equal to the `maxByteLength` of the `SharedArrayBuffer`. New bytes...
[ -0.6970812678337097, 0.18682153522968292, -1.8806096315383911, 0.4172326326370239, -0.6082496643066406, -0.6078798770904541, 0.4224109947681427, 0.2169317752122879, -0.3923453688621521, 0.020953914150595665, -0.6739134788513184, 0.5794457793235779, -0.343010276556015, 0.06572388857603073, ...
javascript/reference/global_objects/sharedarraybuffer/grow/index.md
JavaScript - Global Objects - SharedArrayBuffer - grow - Examples: Note that these examples cannot be run directly from the console or an arbitrary web page, because `SharedArrayBuffer` is not defined unless its security requirements are met.
[ 0.041682496666908264, 0.4696255624294281, -1.895444631576538, -0.06800131499767303, -1.1136504411697388, 0.15089917182922363, 0.46593162417411804, 0.3355952203273773, 0.033956240862607956, -0.2061886340379715, -0.0938413143157959, 0.4813966453075409, -0.9192400574684143, -0.337968349456787...
javascript/reference/global_objects/sharedarraybuffer/grow/index.md
JavaScript - Global Objects - SharedArrayBuffer - grow - Examples - Using grow(): In this example, we create a 8-byte buffer that is growable to a max length of 16 bytes, then check its `growable` property, growing it if `growable` returns `true`: Example: const buffer = new SharedArrayBuffer(8, { maxByteLength: 16 ...
[ -0.854917585849762, -0.11875052750110626, -1.2754020690917969, 0.00041532330214977264, -0.8622161149978638, -0.7982253432273865, -0.05587853863835335, 0.0950411856174469, -0.18903453648090363, 0.18481914699077606, -0.3761499226093292, 1.1770522594451904, -0.6001262664794922, 0.069861255586...
javascript/reference/global_objects/sharedarraybuffer/slice/index.md
JavaScript - Global Objects - SharedArrayBuffer - slice: The `slice()` method of `SharedArrayBuffer` instances returns a new `SharedArrayBuffer` whose contents are a copy of this `SharedArrayBuffer`'s bytes from `start`, inclusive, up to `end`, exclusive. If either `start` or `end` is negative, it refers to an index f...
[ -0.9862650632858276, -0.4266397953033447, -1.3694030046463013, 0.6927118897438049, 0.202332004904747, -0.34825825691223145, 0.6435542702674866, 0.38845786452293396, -0.2581479549407959, 0.3586476147174835, -0.21550236642360687, 0.483198881149292, -0.3447137475013733, 0.47987470030784607, ...
javascript/reference/global_objects/sharedarraybuffer/slice/index.md
JavaScript - Global Objects - SharedArrayBuffer - slice - Syntax: Example: slice() slice(start) slice(start, end)
[ -0.08035065978765488, 0.7011568546295166, -0.8176714181900024, 0.06415501236915588, -0.5265805721282959, -0.07870285212993622, 0.30218252539634705, 0.7031891942024231, -0.15365378558635712, -0.0742492750287056, 0.1404775083065033, 0.21102434396743774, -0.44718772172927856, 0.37580293416976...
javascript/reference/global_objects/sharedarraybuffer/slice/index.md
JavaScript - Global Objects - SharedArrayBuffer - slice - Syntax - Parameters: - `start` (optional): Zero-based index at which to start extraction, converted to an integer. - Negative index counts back from the end of the buffer — if `-buffer.length <= start < 0`, `start + buffer.length` is used. - If `start < -bu...
[ -0.5882702469825745, 0.20681598782539368, -1.2320548295974731, 0.7471686601638794, 0.16120830178260803, -0.6343945860862732, 0.6241071224212646, 0.3227880597114563, 0.1906052529811859, 0.6309025883674622, -0.9154173135757446, 0.257193922996521, -0.034199561923742294, 0.7318273782730103, ...
javascript/reference/global_objects/sharedarraybuffer/slice/index.md
JavaScript - Global Objects - SharedArrayBuffer - slice - Syntax - Return value: A new `SharedArrayBuffer` containing the extracted elements.
[ -0.08044885098934174, -0.07314255088567734, -1.6025543212890625, 0.24914737045764923, -0.31205543875694275, -0.5261178612709045, 0.6528695225715637, 0.8441319465637207, 0.05908847972750664, 0.4302220344543457, -0.22054076194763184, 0.3122044503688812, -0.4531348645687103, 1.099200367927551...
javascript/reference/global_objects/sharedarraybuffer/slice/index.md
JavaScript - Global Objects - SharedArrayBuffer - slice - Examples: Note that these examples cannot be run directly from the console or an arbitrary web page, because `SharedArrayBuffer` is not defined unless its security requirements are met.
[ -0.025644512847065926, 0.4549787938594818, -1.667004108428955, 0.16318747401237488, -0.569399893283844, 0.4184361696243286, 0.6611025929450989, 0.23323024809360504, -0.03908748924732208, -0.07946373522281647, 0.12139349430799484, 0.3647434413433075, -0.6361338496208191, -0.2737448811531067...
javascript/reference/global_objects/sharedarraybuffer/slice/index.md
JavaScript - Global Objects - SharedArrayBuffer - slice - Examples - Using slice(): Example: // Create a SharedArrayBuffer with a size in bytes const buffer = new SharedArrayBuffer(16); const int32View = new Int32Array(buffer); int32View[1] = 42; // Produces Int32Array [0, 42, 0, 0] const sliced = new Int32Array(buf...
[ -0.8989932537078857, 0.5760087966918945, -0.7974079847335815, 0.8712948560714722, 0.28359460830688477, 0.1253536194562912, -0.7669605016708374, -0.26660072803497314, 0.2267003357410431, 0.27052661776542664, 0.01579255983233452, 0.4606293737888336, 0.2652107775211334, -0.010953688062727451,...
javascript/reference/global_objects/sharedarraybuffer/slice/index.md
JavaScript - Global Objects - SharedArrayBuffer - slice - Examples - Using different start and end values: Example: const sab = new SharedArrayBuffer(1024); sab.slice(); // SharedArrayBuffer { byteLength: 1024 } sab.slice(2); // SharedArrayBuffer { byteLength: 1022 } sab.slice(-2); // SharedArrayBuffer { byteLength: ...
[ -0.9116894006729126, -0.13030239939689636, -1.442326545715332, 0.3742249608039856, -0.13034862279891968, 0.00036010376061312854, 0.031653981655836105, 0.006580883637070656, -0.18404431641101837, 0.5370246767997742, 0.06389348953962326, 0.6028379201889038, -0.3157874345779419, -0.0146799301...
javascript/reference/global_objects/sharedarraybuffer/growable/index.md
JavaScript - Global Objects - SharedArrayBuffer - growable: The `growable` accessor property of `SharedArrayBuffer` instances returns whether this `SharedArrayBuffer` can be grow or not.
[ -0.4224357008934021, 0.19981662929058075, -1.311375379562378, 0.42440396547317505, -1.2392113208770752, -0.931597888469696, 0.09898447245359421, 0.6912373900413513, 0.33274146914482117, 0.016381455585360527, -0.9760026335716248, 0.4091563820838928, -0.6644914150238037, 0.6541429758071899, ...
javascript/reference/global_objects/sharedarraybuffer/growable/index.md
JavaScript - Global Objects - SharedArrayBuffer - growable - Description: The `growable` property is an accessor property whose set accessor function is `undefined`, meaning that you can only read this property. The value is established when the array is constructed. If a `maxByteLength` option was set in the construc...
[ -1.1754589080810547, 0.30623358488082886, -1.0637545585632324, 0.6726208329200745, -0.6032885909080505, -1.1427702903747559, -0.07805245369672775, 0.941628098487854, -0.08105293661355972, 0.15929542481899261, -0.8795492649078369, 0.24850313365459442, -0.7301501035690308, 0.368246853351593,...
javascript/reference/global_objects/sharedarraybuffer/growable/index.md
JavaScript - Global Objects - SharedArrayBuffer - growable - Examples: Note that these examples cannot be run directly from the console or an arbitrary web page, because `SharedArrayBuffer` is not defined unless its security requirements are met.
[ 0.047732654958963394, 0.46475905179977417, -1.8718968629837036, -0.02467656321823597, -1.0132778882980347, -0.09490111470222473, 0.4203028678894043, 0.36166709661483765, -0.1697438657283783, -0.16262486577033997, -0.16185232996940613, 0.5524683594703674, -0.7642908096313477, -0.33975180983...
javascript/reference/global_objects/sharedarraybuffer/growable/index.md
JavaScript - Global Objects - SharedArrayBuffer - growable - Examples - Using growable: In this example, we create a 8-byte buffer that is growable to a max length of 16 bytes, then check its `growable` property, growing it if `growable` returns `true`: Example: const buffer = new SharedArrayBuffer(8, { maxByteLengt...
[ -0.47785866260528564, -0.04981093853712082, -1.1966161727905273, -0.0704350546002388, -0.7958135604858398, -0.7114334106445312, -0.06645842641592026, 0.203029602766037, -0.20625650882720947, 0.26366037130355835, -0.46761733293533325, 1.0570008754730225, -0.6210975050926208, 0.1022033020853...
javascript/reference/global_objects/sharedarraybuffer/maxbytelength/index.md
JavaScript - Global Objects - SharedArrayBuffer - maxByteLength: The `maxByteLength` accessor property of `SharedArrayBuffer` instances returns the maximum length (in bytes) that this `SharedArrayBuffer` can be grown to.
[ 0.029293205589056015, -0.27659764885902405, -1.458996057510376, 0.4452002942562103, -0.6413987278938293, -0.49032336473464966, -0.2034718096256256, -0.03375760093331337, 0.11538519710302353, -0.18966007232666016, -0.9430687427520752, 0.431812047958374, -0.4998495578765869, 0.33006095886230...
javascript/reference/global_objects/sharedarraybuffer/maxbytelength/index.md
JavaScript - Global Objects - SharedArrayBuffer - maxByteLength - Description: The `maxByteLength` property is an accessor property whose set accessor function is `undefined`, meaning that you can only read this property. The value is established when the shared array is constructed, set via the `maxByteLength` option...
[ -0.5646592378616333, -0.5608881115913391, -1.2255115509033203, 1.0046321153640747, 0.12223276495933533, -0.4621661901473999, 0.2943747639656067, 0.4263855516910553, 0.5709763765335083, -0.17182543873786926, -0.306371808052063, 0.17959578335285187, -0.7367764711380005, 0.058797311037778854,...
javascript/reference/global_objects/sharedarraybuffer/maxbytelength/index.md
JavaScript - Global Objects - SharedArrayBuffer - maxByteLength - Examples: Note that these examples cannot be run directly from the console or an arbitrary web page, because `SharedArrayBuffer` is not defined unless its security requirements are met.
[ -0.09148617088794708, 0.048907406628131866, -1.7083674669265747, 0.2198503464460373, -0.8088411688804626, 0.12327832728624344, 0.4200056195259094, 0.1748126596212387, 0.009598895907402039, -0.37168046832084656, -0.2886219322681427, 0.6367081999778748, -0.48613184690475464, -0.4229846596717...
javascript/reference/global_objects/sharedarraybuffer/maxbytelength/index.md
JavaScript - Global Objects - SharedArrayBuffer - maxByteLength - Examples - Using maxByteLength: In this example, we create a 8-byte buffer that is resizable to a max length of 16 bytes, then return its `maxByteLength`: Example: const buffer = new SharedArrayBuffer(8, { maxByteLength: 16 }); buffer.maxByteLength; ...
[ -0.2537919878959656, -0.2050674557685852, -0.9931034445762634, 0.4718796908855438, -0.4077998399734497, -0.5107195377349854, 0.07410804182291031, -0.18086929619312286, 0.2788137197494507, -0.4507814943790436, -0.8907884955406189, 0.810154914855957, -0.4525190591812134, -0.05849363654851913...
javascript/reference/global_objects/aggregateerror/index.md
JavaScript - Global Objects - AggregateError: The `AggregateError` object represents an error when several errors need to be wrapped in a single error. It is thrown when multiple errors need to be reported by an operation, for example by `Promise.any()`, when all promises passed to it reject. Compared to `SuppressedE...
[ -1.0211410522460938, -0.39340564608573914, -1.2515937089920044, -0.2570706009864807, -0.5128827095031738, -1.2929003238677979, -0.26326581835746765, 0.5809876918792725, -0.7376729846000671, -0.7064685225486755, -0.7066983580589294, -0.4089238941669464, -0.14234265685081482, 0.8621839284896...
javascript/reference/global_objects/aggregateerror/index.md
JavaScript - Global Objects - AggregateError - Constructor: - `AggregateError()`: Creates a new `AggregateError` object.
[ -0.8582775592803955, -0.5323807001113892, -1.057698130607605, 0.000006552658305736259, -0.3160710036754608, -1.7625197172164917, -0.27541348338127136, 0.8008018732070923, -0.9531060457229614, -0.4289792776107788, -0.6318016648292542, -0.4711528718471527, -0.2662941515445709, 0.455687046051...