Skip to content

Instantly share code, notes, and snippets.

@ornerymoose
Created March 13, 2020 19:00
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 ornerymoose/16617bf6051eecb36203219935904a88 to your computer and use it in GitHub Desktop.
Save ornerymoose/16617bf6051eecb36203219935904a88 to your computer and use it in GitHub Desktop.
var ele = details[i].elements.filter(e => e.name !== null).findIndexPolyfill(e => e.name.includes(query)) == -1;
var cmts = details[i].elements.filter(e => e.cmts !== null).findIndexPolyfill(e => e.cmts.includes(query)) == -1;
if (query && ele){
continue;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment