UNPKG

addimated

Version:

An always interruptable, declarative animation library for React

11 lines (8 loc) 162 B
// @flow function withDefault<T>(value: ?T, defaultValue: T): T { if (value == null) { return defaultValue; } return value; } export { withDefault };