MCPcopy Create free account
hub / github.com/ShaanCoding/makeread.me / isDefined

Function isDefined

frontend/openAPI/generated/core/request.ts:12–14  ·  view source on GitHub ↗
(value: T | null | undefined)

Source from the content-addressed store, hash-verified

10import type { OpenAPIConfig } from './OpenAPI';
11
12export const isDefined = <T>(value: T | null | undefined): value is Exclude<T, null | undefined> => {
13 return value !== undefined && value !== null;
14};
15
16export const isString = (value: any): value is string => {
17 return typeof value === 'string';

Callers 3

processFunction · 0.85
getFormDataFunction · 0.85
getHeadersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected