node_modules
내에서 모듈의 디렉토리 이름을 가져온다.function
: 기명 함수, =>
: 익명 함수this
binding -> this.items.map(x => this.doSomethingWith(x))
arguments
: arrow functions은 arguments를 가지지 않는다. spread syntax로 사용한다. -> (...args) => doSomething(args[0], args[1])
foo
is defined as function foo()
, which simultaneously introduces the variable name foo
into scope. This is different than const foo = () => {}
, which introduces the variable name foo
pointing to an anonymous function....
merge or copy Objects and Arraysasync
and await
are special syntax for working with promisesasync
function always returns a Promise
Promise.resolve
await
to wait for promise to be resolved or rejected and access its valuereferences:
https://www.reactnative.express/javascript/features/destructuring