ES2021 is going to land soon 🚀
It's gonna be really exciting.

Meanwhile - are you fully up to speed with all the cool things we got from ES2020?

Let's take a look at a few of them here 🧵 👇

⚡ Dynamic import

With this new feature, we can import JavaScript modules dynamically, as we need it.

This pattern is also known as code-splitting, and with ES2020 we can do this natively instead of relying on tools like Webpack.
⚡ Optional Chaining

With this feature, we can now access deeply nested properties without having to null-check.

Notice how 'quxBaz' becomes undefined instead of throwing a reference error.
⚡ Nullish Coalescing

With Nullish Coalescing, we can now evaluate values that are 'nullish', not just 'falsy'.

Notice how the variable 'foo' is falsy, but not nullish (null or undefined).
In some cases, we want to use fallbacks only in the case of null or undefined.
⚡ globalThis

If you want to reuse code across different runtimes, you'll run into trouble with the global object.

globalThis will reference 'window' in browsers, 'global' in Node.js, and 'self' in Web Workers.

Now we don't have to manually detect the runtime anymore.
⚡ Promise.allSettled

With this new member of Promise, we can accept an array of Promises and only resolve when all of them are settled. Either resolved or rejected.

This enables us to run all promises without caring if they're resolved or rejected.

More from All

https://t.co/6cRR2B3jBE
Viruses and other pathogens are often studied as stand-alone entities, despite that, in nature, they mostly live in multispecies associations called biofilms—both externally and within the host.

https://t.co/FBfXhUrH5d


Microorganisms in biofilms are enclosed by an extracellular matrix that confers protection and improves survival. Previous studies have shown that viruses can secondarily colonize preexisting biofilms, and viral biofilms have also been described.


...we raise the perspective that CoVs can persistently infect bats due to their association with biofilm structures. This phenomenon potentially provides an optimal environment for nonpathogenic & well-adapted viruses to interact with the host, as well as for viral recombination.


Biofilms can also enhance virion viability in extracellular environments, such as on fomites and in aquatic sediments, allowing viral persistence and dissemination.

You May Also Like