MCPcopy Index your code
hub / github.com/tinyplex/tinybase / setValidValues

Function setValidValues

docs/pseudo.esm.sh/tinybase@9.0.0/index.js:1390–1404  ·  view source on GitHub ↗
(values, forceDel)

Source from the content-addressed store, hash-verified

1388 }
1389 );
1390 const setValidValues = (values, forceDel) => ifTransformed(
1391 values,
1392 () => forceDel ? values : ifNotUndefined(
1393 middleware[5],
1394 (willSetValues) => whileMutating(() => willSetValues(structuredClone(values))),
1395 () => values
1396 ),
1397 (validValues) => mapMatch(
1398 valuesMap,
1399 validValues,
1400 (_valuesMap, valueId, value) => setValidValue(valueId, value),
1401 (_valuesMap, valueId) => delValidValue(valueId)
1402 ),
1403 objIsEqual
1404 );
1405 const setValidValue = (valueId, value, skipMiddleware) => ifTransformed(
1406 value,
1407 () => ifNotUndefined(

Callers 2

setValuesFunction · 0.70
delValuesFunction · 0.70

Calls 6

ifTransformedFunction · 0.70
whileMutatingFunction · 0.70
willSetValuesFunction · 0.70
mapMatchFunction · 0.70
setValidValueFunction · 0.70
delValidValueFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…