Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

163 B
Raw Blame
export const executeIfDefined = <T, R>(func: (input: T) => R, input: T | undefined): R | undefined => {
  return input === undefined ? undefined : func(input);
};