UNPKG

antd

Version:

An enterprise-class UI design language and React components implementation

11 lines (10 loc) 329 B
/** * Search for the first non-undefined value in the arguments and return it. * * ```js * const mergedIcon = fallbackProp(propIcon, contextIcon, defaultIcon); * ``` * * Note: it is different from `??` operator which skips null */ export default function fallbackProp<T>(...args: T[]): Exclude<T, undefined> | undefined;