MCPcopy Create free account
hub / github.com/alephdata/aleph / getList

Method getList

ui/src/app/Query.js:46–51  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

44 }
45
46 getList(name) {
47 const fieldName = this.queryName + _.toString(name);
48 const ctxValues = ensureArray(this.context[name]);
49 const stateValues = ensureArray(this.state[fieldName]);
50 return _.uniq(_.concat(ctxValues, stateValues));
51 }
52
53 getString(name) {
54 return _.toString(_.head(this.getList(name)));

Callers 9

getStringMethod · 0.95
toggleMethod · 0.95
addMethod · 0.95
removeMethod · 0.95
hasMethod · 0.95
getFilterMethod · 0.95
hasFacetMethod · 0.95
toParamsMethod · 0.95
mapStateToPropsFunction · 0.80

Calls 2

ensureArrayFunction · 0.50
toStringMethod · 0.45

Tested by

no test coverage detected