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

"waiting" On Either A Promise Or Regular Object Using Native(es6) Javascript Promises

I played with promises a few times a few years ago using either jQuery or Q. I'm now quite rust… Read more "waiting" On Either A Promise Or Regular Object Using Native(es6) Javascript Promises

Importing Vs Requiring With Babel In Node

I want to import a class inside one file: 'use strict'; import models from '../model… Read more Importing Vs Requiring With Babel In Node

React: Can I Add Attributes To Children's Resultant Html?

I have a component that wraps other components: class MyComp extends React.Component { render() {… Read more React: Can I Add Attributes To Children's Resultant Html?

How To Get The Number Of Pending Promises?

I'm trying to create a function which sends HTTP requests with the following logic: If there a… Read more How To Get The Number Of Pending Promises?

Promise Not Waiting To Finish

I looked at many examples today. They seem to suggest that the following code should be executed in… Read more Promise Not Waiting To Finish

Extend A String Class In Es6

I can write the following in ES5: String.prototype.something=function(){ return this.split(' … Read more Extend A String Class In Es6