MCPcopy
hub / github.com/animatedjs/animated / withDefault

Function withDefault

src/SpringAnimation.js:34–39  ·  view source on GitHub ↗
(value: ?T, defaultValue: T)

Source from the content-addressed store, hash-verified

32};
33
34function withDefault<T>(value: ?T, defaultValue: T): T {
35 if (value === undefined || value === null) {
36 return defaultValue;
37 }
38 return value;
39}
40
41class SpringAnimation extends Animation {
42 _overshootClamping: bool;

Callers 1

constructorMethod · 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…