generator는 전통적인 function의 return 방식의 흐름이 아니라 yield 키워드를 이용해서 외부에서 값을 받을때까지 멈춰 있거나 외부에 값을 전달하고 멈추는 흐름을 만들어 낼 수 있다. function을 정의 할때 * 와 function *nameList() { yield "Flynn&
remove falsy value lodash4 _.pickBy({ a: null, b: 1, c: undefined }, _.identity); // {b: 1} Resource https://stackoverflow.com/questions/30812765/how-to-remove-undefined-and-null-values-from-an-object-using-lodash
Apollo query의 결과가 Object.freese 형태로 넘기기 때문에 값을 받아서 수정해야 하는 이슈가 발생했다. 새로운 객체를 깔끔하게 생성하는 방법을 찾은 것을 공유한다. // lodash or underscore target = _.clone(source) // ES5 target = JSON.parse(JSON.
https://angular.io Angular2가 곧(2016년내) 정식 출시 될듯하다! TypeScript로 개발되고 있고 성능 / 서버사이드렌더링 / 멀티플랫폼 지원까지 진짜 만능 프레임워크!! 열심히 공부해야겠다 ㅎㅎ