Page 7 - JavaScript
P. 7

Array comparison                                                                                  71

            Destructuring an array                                                                            72

            Removing duplicate elements                                                                       72

            Removing all elements                                                                             73

            Method 1                                                                                          73

            Method 2                                                                                          74

            Method 3                                                                                          74

            Using map to reformat objects in an array                                                         74
            Merge two array as key value pair                                                                 75

            Convert a String to an Array                                                                      76

            Test all array items for equality                                                                 76

            Copy part of an Array                                                                             77

            begin                                                                                             77

            end                                                                                               77

        Example 1                                                                                            77

        Example 2                                                                                            77

          Finding the minimum or maximum element                                                              78

          Flattening Arrays                                                                                   79

          2 Dimensional arrays                                                                                79

          Higher Dimension Arrays                                                                             79

            Insert an item into an array at a specific index                                                  80

            The entries() method                                                                              80

        Chapter 7: Arrow Functions                                                                           82

          Introduction                                                                                        82

          Syntax                                                                                              82


          Remarks                                                                                             82

          Examples                                                                                            82

            Introduction                                                                                      82
            Lexical Scoping & Binding (Value of "this")                                                       83

            Arguments Object                                                                                  84

            Implicit Return                                                                                   84

            Explicit Return                                                                                   85
   2   3   4   5   6   7   8   9   10   11   12