We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Type
isDefined
1 parent b752d2a commit 847356aCopy full SHA for 847356a
1 file changed
packages/type/src/guard/lib/guard-defined.func.ts
@@ -11,4 +11,4 @@ import { ResultCallback } from '../../type/result-callback.type';
11
* @returns A `boolean` indicating whether or not the `value` is defined, if `undefined` then returns `never`.
12
*/
13
export const guardDefined: GuardDefined = <Type>(value: Type, callback?: ResultCallback): value is Defined<Type> =>
14
- isDefined<Type>(value, callback);
+ isDefined(value, callback);
0 commit comments