Page 32 - JavaScript
P. 32

forEach with promises                                                                            436

            Performing cleanup with finally()                                                                437

            Asynchronous API request                                                                         437

            Using ES2017 async/await                                                                         438

        Chapter 74: Prototypes, objects                                                                     440

          Introduction                                                                                       440

          Examples                                                                                           440

            Creation and initialising Prototype                                                              440

        Chapter 75: Proxy                                                                                   442

          Introduction                                                                                       442


          Syntax                                                                                             442

          Parameters                                                                                         442

          Remarks                                                                                            442

          Examples                                                                                           442

            Very simple proxy (using the set trap)                                                           442

            Proxying property lookup                                                                         443

        Chapter 76: Regular expressions                                                                     444

          Syntax                                                                                             444

          Parameters                                                                                         444

          Remarks                                                                                            444

          Examples                                                                                           444

            Creating a RegExp Object                                                                         444

          Standard Creation                                                                                  444

          Static initialization                                                                              445

            RegExp Flags                                                                                     445

            Matching With .exec()                                                                            445

          Match Using .exec()                                                                                445

          Loop Through Matches Using .exec()                                                                 446

            Check if string contains pattern using .test()                                                   446

            Using RegExp With Strings                                                                        446

          Match with RegExp                                                                                  446

          Replace with RegExp                                                                                447
   27   28   29   30   31   32   33   34   35   36   37