UNPKG

@refinedev/core

Version:

Refine is a React meta-framework for building enterprise-level, data-intensive applications rapidly with support for modern UI libraries and headless integrations.

10 lines (9 loc) 279 B
/* * Returns first value that is not undefined. * @internal This is an internal helper function. Please do not use externally. */ export const pickNotDeprecated = <T extends unknown[]>( ...args: T ): T[never] => { return args.find((arg) => typeof arg !== "undefined"); };