Created
March 6, 2023 12:28
-
-
Save Git-I985/3e299f40183be05b58ca32da44ace949 to your computer and use it in GitHub Desktop.
Find where
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default (searchIn, searchVal) => searchIn.find(item => Object.keys(searchVal).every(searchKey => item[searchKey] === searchVal[searchKey])) || null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment