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

Function toTrimmedString

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

Source from the content-addressed store, hash-verified

171}
172
173function toTrimmedString(value) {
174 if (value === null || value === undefined) {
175 return '';
176 }
177 return String(value).trim();
178}
179
180function toPositiveInteger(value, fallback) {
181 const parsed = Number.parseInt(toTrimmedString(value), 10);

Callers 10

toPositiveIntegerFunction · 0.85
toNonNegativeIntegerFunction · 0.85
parseRequestQueryFunction · 0.85
toComparableValueFunction · 0.85
normalizeUserFunction · 0.85
getOrderByFunction · 0.85
applyFiltersFunction · 0.85
findMockUserFunction · 0.85
updateMockUserFunction · 0.85
deleteMockUserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected