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

Javascript : Async/await In .replace

I am using the async/await function the following way async function(){ let output = await string… Read more Javascript : Async/await In .replace

Make Sure That Using This Pseudorandom Number Generator Is Safe Here

When I declared a variable like: const FileId = Math.random().toString(36).substr(2, 9); I am gett… Read more Make Sure That Using This Pseudorandom Number Generator Is Safe Here

Succinct/concise Syntax For 'optional' Object Keys In Es6/es7?

There are already a lot of cool features in ES6/ES7 for defining Javascript objects. However, the f… Read more Succinct/concise Syntax For 'optional' Object Keys In Es6/es7?

Is There A Shorthand For This In Es6/es7?

I'm having a bit of a brainfart. Is there a shorthand for this in ES6/ES7? res.locals.hello = h… Read more Is There A Shorthand For This In Es6/es7?

Simple Es7 Decorator With Babel

I can not run this code: https://www.npmjs.com/package/core-decorators#readonly I use gulp and babe… Read more Simple Es7 Decorator With Babel

Javascript : Async/await In .replace

I am using the async/await function the following way async function(){ let output = await string… Read more Javascript : Async/await In .replace