JavaScript Closures
13 February, 2020
A Closure in JavaScript gives you access to an outer funtion's scope from an inner function. This is useful for a number of things, but…
13 February, 2020
A Closure in JavaScript gives you access to an outer funtion's scope from an inner function. This is useful for a number of things, but…
12 February, 2020
We can use a "data-*" attribute in our html to make accessing DOM elements for our unit tests more easily. Grabbing elements based on id…
06 February, 2020
Here is a useful code snippet that allows you to pass in an array of objects, and then filter out the objects that have duplicate key values…
02 February, 2020
the facts In Javascript ES6 let: allows rebinding const: makes contract that does not allow rebinding both allow for the values within to…
19 January, 2020
Today I dived into a little bit of how Array.reduce() functions work. Its easy to think of them as essentially being a shorter, functional…
18 January, 2020
Here is a simple little script that checks a directory for node module and prints the total damage done: To remove them use: