export const isDefined = (x: any) => x !== null && x !== undefined && !isNaN(x)