Skip to content

Search object properties? #7

@bajalovic

Description

@bajalovic

Is it possible to index objects by some properties, and then search by those fields?

For example

const search = Wade([{id: 1, name: "John Doe", email: "john@doe.com"}, {id: 2, name: "Another User", email: "another@user.com"}])

and then to search by query and property (that may be optional)

search("John", "name")
// or
search("com") // search all fields?

Or should I create different search instances for each property I want to search for?

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