Skip to content

Expose mapObject, mapArray, filterObject, etc. low-level functions #578

@ivan-kleshnin

Description

@ivan-kleshnin

In many cases TS can not correctly infer Array vs Object types which becomes problematic for map, filter and maybe few other highly polymorphic functions.

Rambda already have mapArray + mapObject functions and implements map in their terms.
They are even exported but, unfortunately, untyped.

As a relatively low effort solution, can we add those types to allow end users to decide whether they want to use map or mapObject directly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions