Created
September 1, 2022 15:59
-
-
Save 3200pro/c4e96a6ff6d2b637b806104e537635fd to your computer and use it in GitHub Desktop.
Filter Array Of Items Based On _ID Containing String & Map
This file contains hidden or 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
items.filter(item => item._id.indexOf("string") === -1).map((item, i) => { | |
return( | |
<> | |
... | |
</> | |
)} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment