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

Function Wrap

src/ui-react/common/Wrap.tsx:12–18  ·  view source on GitHub ↗
({children, separator, debugIds, id}: Props)

Source from the content-addressed store, hash-verified

10};
11
12export const Wrap = ({children, separator, debugIds, id}: Props): any => {
13 const separated =
14 isUndefined(separator) || !isArray(children)
15 ? children
16 : arrayMap(children, (child, c) => (c > 0 ? [separator, child] : child));
17 return debugIds && !isUndefined(id) ? [id, ':{', separated, '}'] : separated;
18};

Callers

nothing calls this directly

Calls 3

isUndefinedFunction · 0.90
isArrayFunction · 0.90
arrayMapFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…