Support ES2017, ES2018 features in Webpack encore

Support ES2017, ES2018 features in Webpack encore

Want to start using async generator function, spread operator and all the latest features of ES2017, ES2018 in your projects? Well, wait no further to checkout how easily you could achieve this! There are 2 ways of supporting these features – Update .babelrc file Update Webpack Encore config A little background explaining¬†What is Babel? And what are Babel presets? Latest features of Javascript (like spread […]

Read Me 1 Comment

Demystifying Promises vs Callbacks

Demystifying Promises vs Callbacks

Aren’t Promises just regular Callbacks? What are the pros/cons of using one over the other? Promises vs Callbacks? Questions like these bothering you? Not anymore! Before we actually go dive in deeper, lets quickly remind ourselves the basic definitions of these terms and what they are meant to accomplish. Callbacks: A Callback is a any function which is passed as a parameter to another function […]

Read Me Leave comment

Top Fascinating Uses of the Spread Operator

Top Fascinating Uses of the Spread Operator

The Spread Operator ES2016 brings us many many goodies, one of which I came across a couple of days ago is the Spread Operator. I have become a big fan of it, not just because of its utility but also as it helps me to shorten my code. So what is it exactly? Simply put, the spread operator allows an expression(that could be an array/object) […]

Read Me Leave comment