MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / extractValues

Function extractValues

packages/server/src/utils/index.ts:1927–1941  ·  view source on GitHub ↗
(data: any)

Source from the content-addressed store, hash-verified

1925 const values: any[] = []
1926
1927 function extractValues(data: any) {
1928 if (typeof data === 'object' && data !== null) {
1929 if (Array.isArray(data)) {
1930 for (const item of data) {
1931 extractValues(item)
1932 }
1933 } else {
1934 for (const key in data) {
1935 extractValues(data[key])
1936 }
1937 }
1938 } else {
1939 values.push(data)
1940 }
1941 }
1942
1943 extractValues(obj)
1944 return values

Callers 1

getAllValuesFromJsonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected