Skip to content

Should nearest() with accessor return the original object? #67

@danburzo

Description

@danburzo

If you have colors in the form:

[
  { name: 'myname', hex: '#f0f0f0' },
  ...
]

and call:

nearest(colors, differenceEuclidean(), item => item.hex)(somecolor, 1)

would you expect to get the hex back (as it is now), or the entire object?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions