Skip to content

Instantly share code, notes, and snippets.

@degiere
Last active August 29, 2015 14:02
Show Gist options
  • Save degiere/1f98e6fd2bb9424873f6 to your computer and use it in GitHub Desktop.
Save degiere/1f98e6fd2bb9424873f6 to your computer and use it in GitHub Desktop.
SQL IN like query with Dojo stores
var isInList = function(list) {
return function(object) {
return list.lastIndexOf(object.id) > -1
}
}
var store = new Memory({data: someData})
var results = store.query(isInList(["apples", "orangles"]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment