MCPcopy Index your code
hub / github.com/parse-community/parse-server / flatten

Function flatten

src/StatusHandler.js:23–33  ·  view source on GitHub ↗
(array)

Source from the content-addressed store, hash-verified

21};
22
23export function flatten(array) {
24 var flattened = [];
25 for (var i = 0; i < array.length; i++) {
26 if (Array.isArray(array[i])) {
27 flattened = flattened.concat(flatten(array[i]));
28 } else {
29 flattened.push(array[i]);
30 }
31 }
32 return flattened;
33}
34
35function statusHandler(className, database) {
36 function create(object) {

Callers 1

trackSentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected