MCPcopy Index your code
hub / github.com/tensorflow/tfjs / zipToList

Function zipToList

tfjs-data/src/util/deep_map.ts:177–188  ·  view source on GitHub ↗
(x: any[])

Source from the content-addressed store, hash-verified

175
176// tslint:disable-next-line:no-any
177export function zipToList(x: any[]): DeepMapResult {
178 if (x === null) {
179 return null;
180 }
181 // TODO(soergel): validate array type?
182
183 if (isIterable(x[0])) {
184 return {value: null, recurse: true};
185 } else {
186 return {value: x, recurse: false};
187 }
188}
189
190/**
191 * A return value for an async map function for use with deepMapAndAwaitAll.

Callers

nothing calls this directly

Calls 1

isIterableFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…