'2020/01/29'에 해당되는 글 3건

  1. 2020.01.29 es6 전개문구 (...)
  2. 2020.01.29 node.js 객체 합치기
  3. 2020.01.29 unserscore 라이브러리
Programming/node.js2020. 1. 29. 17:45

... 은 es6부터 추가된 문법으로

배열을 풀어서 인자로 만들어 주는 듯

 

function sum(x, y, z) {
  return x + y + z;
}

const numbers = [1, 2, 3];

console.log(sum(...numbers));
// expected output: 6

[링크 : https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Operators/Spread_syntax]

[링크 : https://2ality.com/2015/01/es6-set-operations.html]

'Programming > node.js' 카테고리의 다른 글

node.js postgresql transaction  (0) 2020.01.31
for 에서 async, await  (0) 2020.01.30
node.js 객체 합치기  (0) 2020.01.29
unserscore 라이브러리  (0) 2020.01.29
node.js 집합연산  (0) 2020.01.23
Posted by 구차니
Programming/node.js2020. 1. 29. 17:05

assign()을 쓰면 가능은 한데..

동일 이름일 경우에는 어떻게 해야할까?

 

[링크 : https://4urdev.tistory.com/22]

+

키 이름을 미리 바꾸고 합치면 되려나?

[링크 : https://www.freecodecamp.org/news/30-seconds-of-code-rename-many-object-keys-in-javascript-268f279c7bfa/]

'Programming > node.js' 카테고리의 다른 글

for 에서 async, await  (0) 2020.01.30
es6 전개문구 (...)  (0) 2020.01.29
unserscore 라이브러리  (0) 2020.01.29
node.js 집합연산  (0) 2020.01.23
node.js promise  (0) 2020.01.20
Posted by 구차니
Programming/node.js2020. 1. 29. 13:29

node.js 에서 사용할수 있는 라이브러리.

객체등을 uniq하게 정렬해줄수 있다는데

정작해보니.. 키에 따라서 정리만 해주는 정도?

 

[링크 : https://ddalpange.github.io/2017/10/10/js-not-duplicated-object-array/]

[링크 : http://underscorejs.org/]

[링크 : https://harrythegreat.tistory.com/entry/언더스코어-정리]

 

+

함수로 정리하는 내용

[링크 : https://gamblecoder.tistory.com/29]

 

'Programming > node.js' 카테고리의 다른 글

es6 전개문구 (...)  (0) 2020.01.29
node.js 객체 합치기  (0) 2020.01.29
node.js 집합연산  (0) 2020.01.23
node.js promise  (0) 2020.01.20
node.js cookie 관련 함수들  (0) 2020.01.19
Posted by 구차니