MCPcopy Create free account
hub / github.com/Autodesk/react-base-table / callOrReturn

Function callOrReturn

src/utils.js:65–67  ·  view source on GitHub ↗
(funcOrValue, ...args)

Source from the content-addressed store, hash-verified

63}
64
65export function callOrReturn(funcOrValue, ...args) {
66 return typeof funcOrValue === 'function' ? funcOrValue(...args) : funcOrValue;
67}
68
69export function hasChildren(data) {
70 return Array.isArray(data.children) && data.children.length > 0;

Callers 5

renderExpandIconMethod · 0.90
BaseTable.jsFile · 0.90
DraggableTableClass · 0.85
SelectableTableClass · 0.85
DraggableTableClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected