EASY Pattern to Improve JavaScript Functions

Published: 19 December 2021
on channel: Chad Lewis
16
1

The more parameters a function accepts, the harder it is to remember what each one does, what order they should be in, and it’s a nightmare to refactor. In this video we’ll go through an example illustrating these problems, and we’ll solve them for good by condensing all the arguments into a single “options” object.

CHAPTER TIMESTAMPS
0:00: Intro
0:20: Positional Arguments Example
5:46: “Options” Object
7:36: “Options” Object Benefits
8:59: “Options” Object Inlining
10:17: Outro

RELEVANT LINKS
Nullish Coalescing video:    • How to Use Nullish Coalescing in JavaScript  
Eslint max-params rule: https://eslint.org/docs/rules/max-params

Do you have a request for a video about a particular topic, or want me to go into more detail on the topic in this video? Please leave a comment below!

Thanks for watching ❤️


On this page of the site you can watch the video online EASY Pattern to Improve JavaScript Functions with a duration of online in good quality, which was uploaded by the user Chad Lewis 19 December 2021, share the link with friends and acquaintances, this video has already been watched 16 times on youtube and it was liked by 1 viewers. Enjoy your viewing!