Page 21 - JavaScript
P. 21

Read file as dataURL                                                                             272

            Slice a file                                                                                     273

            Client side csv download using Blob                                                              273

            Selecting multiple files and restricting file types                                              273

            Get the properties of the file                                                                   274

        Chapter 46: Fluent API                                                                              275

          Introduction                                                                                       275

          Examples                                                                                           275

            Fluent API capturing construction of HTML articles with JS                                       275

        Chapter 47: Functional JavaScript                                                                   278

          Remarks                                                                                            278

          Examples                                                                                           278

            Accepting Functions as Arguments                                                                 278

            Higher-Order Functions                                                                           278

            Identity Monad                                                                                   279

            Pure Functions                                                                                   281

        Chapter 48: Functions                                                                               283

          Introduction                                                                                       283

          Syntax                                                                                             283

          Remarks                                                                                            283

          Examples                                                                                           283

            Functions as a variable                                                                          283

        A Note on Hoisting                                                                                  286

          Anonymous Function                                                                                 286


        Defining an Anonymous Function                                                                      286

        Assigning an Anonymous Function to a Variable                                                       286

        Supplying an Anonymous Function as a Parameter to Another Function                                  287

        Returning an Anonymous Function From Another Function                                               287


        Immediately Invoking an Anonymous Function                                                          287

        Self-Referential Anonymous Functions                                                                288

          Immediately Invoked Function Expressions                                                           290
   16   17   18   19   20   21   22   23   24   25   26