MCPcopy Create free account
hub / github.com/cryptii/cryptii / applyFilter

Method applyFilter

src/View/Modal/Library.js:34–38  ·  view source on GitHub ↗

* Applies the given filter callback on the brick library array. * @param {function} filter Filter function * @return {LibraryModalView} Fluent interface

(filter)

Source from the content-addressed store, hash-verified

32 * @return {LibraryModalView} Fluent interface
33 */
34 applyFilter (filter) {
35 this._filteredLibrary = this._library.filter(filter)
36 this.refresh()
37 return this
38 }
39
40 /**
41 * Renders view.

Callers 1

Calls 1

refreshMethod · 0.80

Tested by

no test coverage detected