MCPcopy Index your code
hub / github.com/docker/getting-started / unwrapArray

Function unwrapArray

app/src/static/js/react-bootstrap.js:2056–2058  ·  view source on GitHub ↗
(arg)

Source from the content-addressed store, hash-verified

2054 * otherwise returns the argument. Used for Preact compatibility.
2055 */
2056var unwrapArray = function unwrapArray(arg) {
2057 return Array.isArray(arg) ? arg[0] : arg;
2058};
2059/**
2060 * Takes a maybe-undefined function and arbitrary args and invokes the function
2061 * only if it is defined.

Callers 1

react-bootstrap.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…