Simply put, this is a collection of tweets. Each one will be a twitter thread, that acts sort of like a blog post.
The first tweet in the thread will include an example image for the topic. It is then followed by several tweets of explanations. That is it. Simple and sweet learning.
Need a simple way to clone an object and add properties to it at the same time?
β Shannon Duncan - π¦ (@iamMrDuncan) April 10, 2019
A shallow clone can be done like this #javascriptnuggets example. Here we clone `car` into `tesla` and add the `energy` property to it. #javascript #nodejs
Spread & Rest series 1/7 pic.twitter.com/d35aBQCsiN
In this #javascriptnuggets example we show how to call a function dynamically that is stored in an object. Fun fact, this works on classes and prototype chains because they are just objects too!#javascript #nodejs pic.twitter.com/sainziWsj6
β Shannon Duncan - π¦ (@iamMrDuncan) April 9, 2019
When you copy an object, how you copy it matters. In the attached nugget you can see that if you are not expecting it, you may end up with changing values you didnβt mean to.#javascript #javascriptnuggets
β Shannon Duncan - π¦ (@iamMrDuncan) April 2, 2019
More info and answers in the twitter thread below π pic.twitter.com/OiEZs1IoS8
So when you create a queue for storing items to be processed in order of first in first out. How do you normally do it? Like below? Thatβs not the best and most efficient way.#javascript #algorithms
β Shannon Duncan - π¦ (@iamMrDuncan) April 1, 2019
Lets talk about it in todays #javascriptnuggets in the thread below π pic.twitter.com/lFY5yYmhUc
An interesting thing that happens when using JSON and storing two different number types within the same shape of JSON.#javascript #nodejs #javascriptnuggets
β Shannon Duncan - π¦ (@iamMrDuncan) March 31, 2019
More information in the thread below π pic.twitter.com/ghV9Js3OmP
Did you know that when you create an object in #JavaScript using only `{}` that you have more than just an empty object?
β Shannon Duncan - π¦ (@iamMrDuncan) March 29, 2019
Use the following #javascriptNugget, and read more in the tweet thread below π pic.twitter.com/YW5KKL6yLx
Ever noticed that JavaScript const doesn't work like you think it should for objects? Well thats a deep rabbit hole, and heres a quick way to make a real constant object using Object.freeze. pic.twitter.com/k85ZylZGIj
β Shannon Duncan - π¦ (@iamMrDuncan) March 29, 2019
When I want to write to both the console and a log file in #nodejs, this is what my captains.log is for ππ€ͺ. Simple. Easy to read. And works good for small use cases. Stardate 72679. pic.twitter.com/YMaqMoS93U
β Shannon Duncan - π¦ (@iamMrDuncan) March 19, 2019