Skip to content

Simplification and optimization opportunity in useLoadData #41

@baker-ling

Description

@baker-ling

I noticed that there are a couple of place where code can be simplified in useLoadData where the map-reduce pattern is currently used and .some() or .every() would suffice.

.some() and .every() should offer a time optimization with early termination and a space optimization by not creating a new array like .map() does.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions