MCPcopy
hub / github.com/KilledByAPixel/LittleJS / isLerpable

Function isLerpable

plugins/tweenSystem.js:23–23  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

21// True if the value is an instance of a class that exposes a numeric-percent
22// `lerp(other, percent)` method (Vector2, Color, or any future class).
23function isLerpable(v) { return v && typeof v.lerp === 'function'; }
24
25///////////////////////////////////////////////////////////////////////////////
26

Callers 2

constructorMethod · 0.85
interpMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected