Skip to content

Instantly share code, notes, and snippets.

@ldmarz
Created September 3, 2018 18:47
Show Gist options
  • Save ldmarz/d341bccd2c0bbb2b1230bb048ec28594 to your computer and use it in GitHub Desktop.
Save ldmarz/d341bccd2c0bbb2b1230bb048ec28594 to your computer and use it in GitHub Desktop.
const query = 'old man && scalzi';
const result = fuseWithOperators(query, mockData);
// → [{"title": "Old Man's War", "author": {"firstName": "John", "lastName": "Scalzi"}}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment