Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

코어에서 제공되는 컬렉션은 js배열이 아닌가요? #45

Open
youngdo212 opened this issue Oct 25, 2018 · 3 comments
Open
Labels
question Further information is requested

Comments

@youngdo212
Copy link
Contributor

youngdo212 commented Oct 25, 2018

let musics = await album.getMusics()
music.map(music => {
  ...
});

getMusics()를 이용해 IMusic 컬렉션을 제공받아서
map 메소드를 사용하려고 하니 안됩니다!

@youngdo212 youngdo212 changed the title 코어에서 제공되는 컬렉션은 배열이 아닌가요? 코어에서 제공되는 컬렉션은 js배열이 아닌가요? Oct 25, 2018
@iodes iodes added help wanted Extra attention is needed question Further information is requested and removed help wanted Extra attention is needed labels Oct 25, 2018
@Web-Engine
Copy link
Contributor

음 배열로 반환이 되는 것이 맞을텐데, 확인해보겠습니다.
일단, 해당 문제는 Array.from(music).map(music => { ... }); 으로 해결할 수 있을 것 같습니다.

@youngdo212
Copy link
Contributor Author

배열 맞았어요! getMusic()의 리턴값 문제였습니다. IAlbum.getMusic의 프로미스 리턴값이 2번 이상 호출되면 null응 리턴하더라구요. 해당 문제는 멘토님의 답변 기다리는 중입니다

@iodes
Copy link
Member

iodes commented Oct 26, 2018

현재 문제 확인중입니다... ^^

@iodes iodes reopened this Oct 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants