interface DefaultTo { (a: T, b: null | undefined): T; (a: T, b: U): U; (a: T): { (b: null | undefined): T; (b: U): U; }; } /** * Returns the second argument if it is not `null`, `undefined` or `NaN` * otherwise the first argument is returned. * * @param {a} dflt The default value. * @param {b} x The value to return if it is not null or undefined * @return {*} The the second value or the default value * @example * * var defaultTo42 = defaultTo(42); * * defaultTo42(null); //=> 42 * defaultTo42(undefined); //=> 42 * defaultTo42('Example'); //=> 'Example' * defaultTo42(parseInt('string')); //=> 42 */ declare const _default: DefaultTo; export default _default;