MCPcopy Create free account
hub / github.com/cnodejs/egg-cnode / flatten

Function flatten

app/public/libs/lodash.compat.js:4737–4748  ·  view source on GitHub ↗

* Flattens a nested array (the nesting can be to any depth). If `isShallow` * is truey, the array will only be flattened a single level. If a callback * is provided each element of the array is passed through the callback before * flattening. The callback is bound to `thisArg` and inv

(array, isShallow, callback, thisArg)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

mapFunction · 0.85
baseFlattenFunction · 0.85

Tested by

no test coverage detected