MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / hasBaseCheck

Function hasBaseCheck

packages/parsers/src/htmlParser.ts:495–496  ·  view source on GitHub ↗
(value: number | undefined, base: number)

Source from the content-addressed store, hash-verified

493 const valueEpsilon = 0.00001;
494
495 const hasBaseCheck = (value: number | undefined, base: number): boolean =>
496 value !== undefined && Math.abs(value - base) <= valueEpsilon && Math.abs(base) > valueEpsilon;
497
498 const timeZeroKeyframes = keyframes.filter((kf) => Math.abs(kf.time) <= timeEpsilon);
499

Callers 1

normalizeKeyframesFunction · 0.85

Calls 1

absMethod · 0.80

Tested by

no test coverage detected