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

Function isString

tfjs-core/src/util_base.ts:520–522  ·  view source on GitHub ↗
(value: {})

Source from the content-addressed store, hash-verified

518
519/** Returns true if the value is a string. */
520export function isString(value: {}): value is string {
521 return typeof value === 'string' || value instanceof String;
522}
523
524export function isBoolean(value: {}): boolean {
525 return typeof value === 'boolean';

Callers 3

valToStringFunction · 0.90
expectArraysEqualFunction · 0.90
inferDtypeFunction · 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…