Skip to content

Instantly share code, notes, and snippets.

@3200pro
Created September 1, 2022 15:59
Show Gist options
  • Select an option

  • Save 3200pro/c4e96a6ff6d2b637b806104e537635fd to your computer and use it in GitHub Desktop.

Select an option

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