hash array mapped trie (HAMT) used to model sets and maps indexes of other values would have to change 8 Recall that JS arrays are modeled as objects
15 5 2 Using FOR/IN for numerically index arrays With primitive type variables it is straightforward to copy and change values
Fixed Array Map Property “1” Property “0” Length • above shows most common optimized representation • all blocks have a Map property describing their
#2 - Expressions régulières : match, test, every, replace, RegExp Paramètres de map : array map((elem, index, array)=> , thisArg)
replace all occurrences in this string of str1 with str2 Arrays var name = [expression, expression, , expression]; name[index] = expression;
Il faut le transcompiler (ou transpiler) en JavaScript file ts transpiler file js array pour les tableaux non-statiques (taille variable)
Optional parameter: start/end index ▫ Uses strict equality (===) let i = n None of the following change the array ▫ Return a new array/string with
4 jan 2018 · When something that doesn't map to a number in an obvious way (such as we will store this number at index 2 of the array
replace executes a search for a match between a string and a regular expression, and replaces the matched element at a specified index in an array