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

Function isInteger

tfjs-layers/src/utils/math_utils.ts:29–31  ·  view source on GitHub ↗
(x: number)

Source from the content-addressed store, hash-verified

27 * Determine if a number is an integer.
28 */
29export function isInteger(x: number): boolean {
30 return x === parseInt(x.toString(), 10);
31}
32
33/**
34 * Calculate the product of an array of numbers.

Callers 1

normalizeArrayFunction · 0.90

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…