MCPcopy Create free account
hub / github.com/codecombat/codecombat / search

Method search

app/collections/Users.js:52–59  ·  view source on GitHub ↗
(term)

Source from the content-addressed store, hash-verified

50 }
51
52 search (term) {
53 if (!term) { return this.slice() }
54 term = term.toLowerCase()
55 return this.filter(function (user) {
56 let left
57 return (user.broadName().toLowerCase().indexOf(term) > -1) || (((left = user.get('email')) != null ? left : '').indexOf(term) > -1)
58 })
59 }
60
61 fetchByIds (ids) {
62 return this.fetch({

Callers 3

matchesCheckFunction · 0.45
copy-i18n-tags.jsFile · 0.45
flow_spec.jsFile · 0.45

Calls 3

filterMethod · 0.80
broadNameMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected