Skip to content

Instantly share code, notes, and snippets.

@3200pro
Created September 1, 2022 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 3200pro/c4e96a6ff6d2b637b806104e537635fd to your computer and use it in GitHub Desktop.
Save 3200pro/c4e96a6ff6d2b637b806104e537635fd to your computer and use it in GitHub Desktop.
Filter Array Of Items Based On _ID Containing String & Map
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