Skip to content

BetterCodeHQ/ES7-Guide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

EcmaScript 7 Basic Guide

A common project made by Better Code developers.

ES7: Async and Await

Experimental new features

ArrayBuffer.transfer
  var foo = new ArrayBuffer(10);
  var pip = ArrayBuffer.transfer(foo, 12);
   

A great example of async/await:

```js
async function asyncFun () {
  var value = await Promise
    .resolve(1)
    .then(x => x * 3)
    .then(x => x + 5)
    .then(x => x / 2);
  return value;
}
asyncFun().then(x => console.log(`x: ${x}`));

Resources

Understanding JavaScript’s async await

About

Another awesome project created using Better Code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published