UNPKG

@amplitude/experiment-js-client

Version:
12 lines (11 loc) 705 B
import { EvaluationFlag } from '@amplitude/experiment-core'; export declare const isNullOrUndefined: (value: unknown) => boolean; export declare const isNullUndefinedOrEmpty: (value: unknown) => boolean; /** * Filters out null and undefined values from an object, returning a new object * with only defined values. This is useful for config merging where you want * defaults to take precedence over explicit null/undefined values. */ export declare const filterNullUndefined: <T extends object>(obj: T) => Partial<T>; export declare const isLocalEvaluationMode: (flag: EvaluationFlag | undefined) => boolean; export declare const isRemoteEvaluationMode: (flag: EvaluationFlag | undefined) => boolean;