Skip to content Skip to sidebar Skip to footer
Showing posts with the label Ecmascript 2017

Js: Handle With Find() Property Undefined

I have a method which returns a value from an element in the array. Not all the elements have the p… Read more Js: Handle With Find() Property Undefined

Loading Files Synchronously In Javascript With Await Operator

Recently, I've read that there is a await operator in Javascript for waiting for a Promise obje… Read more Loading Files Synchronously In Javascript With Await Operator

In Angular, How To Handle Promise Reject When Using Async/await

In Angular, if I use promise, the code would be let promise = this.$resource('www.example.com.… Read more In Angular, How To Handle Promise Reject When Using Async/await

How Is Async/await Working In Serial And Parallel?

I have two async functions. Both of them are waiting for two 3 seconds function calls. But the seco… Read more How Is Async/await Working In Serial And Parallel?

Javascript Await On Multiple Chained Async Functions

Say I have the following: const a = new A(); await a.getB().action(); A.prototype.getB() is async … Read more Javascript Await On Multiple Chained Async Functions