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

mixin lodash use concat "Confuse" #139

Open
HoKangInfo opened this issue Nov 26, 2020 · 1 comment
Open

mixin lodash use concat "Confuse" #139

HoKangInfo opened this issue Nov 26, 2020 · 1 comment

Comments

@HoKangInfo
Copy link

HoKangInfo commented Nov 26, 2020

const list =[[1,2,3],[4,5,6]]
const cond = [0,1]

 _.chain(cond)
    .map((value, key) => list[key])
    .concat()
    .value()

but

 await _$.chain(cond)
    .map((value, key) => list[key])
    .concat() // need iterator function
    .value()

must

 await _$.chain(cond)
//    .map((value, key) => list[key])
    .concat((value, key) => list[key]) 
    .value()
@suguru03
Copy link
Owner

@HoKangInfo Thanks for the issue!
I need to investigate it but I could make it optional 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants