KWKent Warrenintheartofwarren.hashnode.dev·Mar 13, 2021 · 7 min readMap ObjectMaps are a JavaScript object that maintain order--meaning that iterating over a Map will do so in the order that the key/value pairs were added (not updated). For example, using a for...of loop provides us with a [key, value] for every iteration: con...00
KWKent Warrenintheartofwarren.hashnode.dev·Mar 13, 2021 · 3 min readJavaScript: Bind & ClosureIn JavaScript, a bound function means that the original function definition is essentially wrapped in another function definition; however, the inner function gets returned out from the outer function, thus creating closure and permanently binding th...00
KWKent Warrenintheartofwarren.hashnode.dev·Mar 13, 2021 · 2 min readObject PrototypesPrototypes are an excellent way to conserve memory by allowing failed property lookups, such as methods (see below), to traverse the object’s prototype chain. Put another way, if we invoke a method on an object, but that method does not exist on tha...00
KWKent Warrenintheartofwarren.hashnode.dev·Mar 7, 2021 · 8 min readNode JS: Streaming and Piping PhotosNodeJS can be used to automate data transformation and downloading. For example, I recently had over 14,000 lines of code staring back at me, and I contemplated how I was going to access certain nested photo URLs within that code. Still, after findin...00
KWKent Warrenintheartofwarren.hashnode.dev·Mar 7, 2021 · 3 min readPromisesPromises - why are they so appealing? One reason to use Promises is to run our code asynchronously, in a non-blocking manner, by making use of the browser (XHR) and APIs to retrieve data. fetch() is a good example of this. Promises act as a placehold...01D