MCPcopy Index your code
hub / github.com/plotly/dash / zipIfArray

Function zipIfArray

dash/dash-renderer/src/actions/callbacks.ts:234–243  ·  view source on GitHub ↗
(a: any, b: any)

Source from the content-addressed store, hash-verified

232 Array.isArray(input) ? pluck('value', input) : input.value;
233
234const zipIfArray = (a: any, b: any) => {
235 if (Array.isArray(a)) {
236 // For client-side callbacks with multiple Outputs, only return a single dash_clientside.no_update
237 if (b === (window as any).dash_clientside.no_update) {
238 return zip(a, [b]);
239 }
240 return zip(a, b);
241 }
242 return [[a, b]];
243};
244
245function cleanOutputProp(property: string) {
246 return property.split('@')[0];

Callers 1

handleClientsideFunction · 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…