A small sideloader for backbone collections to make it work with backbone-deep-model
npm install --save backbone-deep-model-collection-search
var BackboneCollection = require('backbone-deep-model-collection-search')(Backbone.Collection)
// Build your own collection from this
var List = BackboneCollection.extend({ ... })
var thisNewList = new List()
thisNewList.deepSearch({'dot.delimited.search.term':true})
// returns array of results, so for no matches [], for 2 matches [model, model]
This stemmed out of my need to deep search collections that contain deep-linked models, as described in this issue.
ISC