diff --git a/01_grundlagen/unterricht/tag08/13_ar-splice.html b/01_grundlagen/unterricht/tag08/13_ar-splice.html new file mode 100644 index 0000000..ea391a6 --- /dev/null +++ b/01_grundlagen/unterricht/tag08/13_ar-splice.html @@ -0,0 +1,75 @@ + + + + + + Array - ar.splice() + + + +
+
+

Array - ar.splice()

+

+ + ar.splice() + + - Die splice() Methode ändert den Inhalt eines Arrays durch das Entfernen vorhandener + Elemente und/oder Hinzufügen neuer Elemente. +

+
+
+ + + diff --git a/01_grundlagen/unterricht/tag08/14_ar-slice.html b/01_grundlagen/unterricht/tag08/14_ar-slice.html new file mode 100644 index 0000000..1071899 --- /dev/null +++ b/01_grundlagen/unterricht/tag08/14_ar-slice.html @@ -0,0 +1,52 @@ + + + + + + Array - ar.slice() + + + +
+
+

Array - ar.slice()

+

+ + ar.slice() + + - Die slice() Methode schreibt eine flache Kopie von einem Teil des Arrays in ein neues + Array-Objekt von begin bis end (end nicht enthalten). Das originale Array wird nicht + verändert. (side-effect-free) +

+
side-effect-free
+
+
+
+ + + diff --git a/01_grundlagen/unterricht/tag08/15_ar-sort.html b/01_grundlagen/unterricht/tag08/15_ar-sort.html new file mode 100644 index 0000000..c97e1c9 --- /dev/null +++ b/01_grundlagen/unterricht/tag08/15_ar-sort.html @@ -0,0 +1,45 @@ + + + + + + Array - ar.sort()) + + + +
+
+

Array - ar.sort()

+

+ + ar.sort() + + - Die sort() Methode sortiert die Elemente eines Arrays in-place und gibt das + Array zurück. Standardmäßig werden alle Elemente in Strings umgewandelt und dann anhand ihrer UTF-16 + Codepoints miteinander verglichen. +

+
+ Das angesprochene Array wird durch in-place-mutation ebenfalls sortiert. +
+
+
+
+ + +