MCPcopy
hub / github.com/tensorflow/tfjs / isLocalPath

Function isLocalPath

tfjs-data/src/util/source_util.ts:22–24  ·  view source on GitHub ↗
(source: any)

Source from the content-addressed store, hash-verified

20// input.
21// tslint:disable-next-line:no-any
22export function isLocalPath(source: any): boolean {
23 return (typeof source === 'string') && source.slice(0, 7) === 'file://';
24}

Callers 3

iteratorMethod · 0.90
iteratorMethod · 0.90

Calls 1

sliceMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…