export const isEmpty = function (x: Record): boolean { return typeof x == 'undefined' || x.length == 0 || x == null; };