Skip to content

Ch. 2 Array.from #36

Closed
Closed
@mangotrader

Description

@mangotrader

Thanks for the excellent book!

I'm a bit puzzled by the Array.from() usage example at the bottom of Page 63 in 2nd version. It was said that the returned array will be the even values, while the second param of the Array.from() function is actually a map function instead of a filter function. So the resulting array will be [true, false, true, ..., ].

Is my assumption correct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions