Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement array value for searching #73

Closed
zaynekomichi opened this issue Nov 16, 2023 · 3 comments
Closed

Implement array value for searching #73

zaynekomichi opened this issue Nov 16, 2023 · 3 comments

Comments

@zaynekomichi
Copy link

Given we can search using a value (string/number) why not implement multisearch whihc will use an array of search values for example

let data = search(users,["name","age","year"],["Zayne","20","2023"])

@yann510
Copy link
Owner

yann510 commented Nov 17, 2023

Hey,

Why wouldn't you combine your arrays instead of passing them one by one?
This would be supported out of the box by the library without any changes to it.

Let me know what you think ;)

@zaynekomichi
Copy link
Author

True, ended up having to concatenate the different search options into on string. Works like a charm!

@yann510
Copy link
Owner

yann510 commented Nov 18, 2023

Awesome, I'm glad to hear this 😎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants