Java Script

JavaScript

if

const a  = 1
const b = a ?? 0

Spread Operator

let a = { name: 'a', age: 18 }
let b = {...a, tel: 123}
console.log(b) # {name: 'a', age:18, tel: 123}

Rest Operator

-

primitive type

reference type

Redux

  • action :

ES2015

  • generator (* ออกเสียงว่า ซุปเปอร์สตาร์)

    function *helloGenerator() {
    }

NPM

publish package

npm publish --access public

yarn

  • yarn --force (npm rebuild)

async / await

link