New Features in ES6
Fat Arrow Functionconst getNumber = () => 1; const getArray = () => [1, 2, 3]; const getObject = () => ({a: 1, b: 2, c: 3}); const withParam = (payload) => payload;Object Manipulationconst {a, b} = result; const {data: {a, b}} = result; const firstObj = {a, b}; (Same as {a: a, b:b}) const secondObj = {c, d}; const mergeObj = { ...firstObj, ...secondObj};Async Function(Promise)const isTrue = (pay..
더보기