As far as I understand, in ES7/ES2016 putting multiple await‘s in code will work similar to chaining .then() with promises, meaning that they will execute one after the other...
  • April 26, 2022
  • 0 Comments
File: SafeString.js // Build out our basic SafeString type function SafeString(string) { this.string = string; } SafeString.prototype.toString = function() { return "" + this.string; }; export default SafeString; I...
  • April 22, 2022
  • 0 Comments
In a project I am collaborating on, we have two choices on which module system we can use: Importing modules using require, and exporting using module.exports and exports.foo. Importing...
  • April 14, 2022
  • 0 Comments