Project Init

This commit is contained in:
Muluhabt
2026-05-29 15:23:46 +03:00
commit 2fbc557aac
67387 changed files with 6063341 additions and 0 deletions

20
node_modules/es-toolkit/dist/predicate/isNotNil.d.ts generated vendored Normal file
View File

@@ -0,0 +1,20 @@
//#region src/predicate/isNotNil.d.ts
/**
* Checks if the given value is not null nor undefined.
*
* The main use of this function is to be used with TypeScript as a type predicate.
*
* @template T - The type of value.
* @param {T | null | undefined} x - The value to test if it is not null nor undefined.
* @returns {x is T} True if the value is not null nor undefined, false otherwise.
*
* @example
* // Here the type of `arr` is (number | undefined)[]
* const arr = [1, undefined, 3];
* // Here the type of `result` is number[]
* const result = arr.filter(isNotNil);
* // result will be [1, 3]
*/
declare function isNotNil<T>(x: T | null | undefined): x is T;
//#endregion
export { isNotNil };