#Support more JavaScript (ES6?) syntax

5 messages · Page 1 of 1 (latest)

polar glade
#
  • Default value
const { attr = {} } = Object
function (arg = value) {}
  • Unpack
const a = {}, b = {}
const newObject = {...a, ...b}
  • Class
class Foo {
  constructor(a, b) {
    this.a = a
    this.b = b
  }
}
  • Assignment Operators
const obj = {}
obj.a ||= 1
console.log(obj)
// { a: 1 }
  • Spread Operator
function foo(...array) {
  console.log(array)
}
  • Multi arguments for console.log() done
let a, b, c, d

console.log(a, b, c, d)
  • Multiline String
const a = `
aaa
`
polar glade
#

Support more ES6 syntax

polar glade
#

Support more JavaScript (ES6?) syntax

polar glade
#

⬆️

fair musk
#

most of this is probably going to happen with ichor