MCPcopy Create free account
hub / github.com/flatlogic/react-material-admin / pickQueryValue

Function pickQueryValue

src/repositories/usersMockRepository.js:166–171  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

164let idSequence = INITIAL_USERS.length;
165
166function pickQueryValue(value) {
167 if (Array.isArray(value)) {
168 return value[value.length - 1];
169 }
170 return value;
171}
172
173function toTrimmedString(value) {
174 if (value === null || value === undefined) {

Callers 3

getOrderByFunction · 0.85
applyFiltersFunction · 0.85
applyPaginationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected