Array Manipulation

(, en)
export function isObject(o: any) {
  return typeof o === "object" && !Array.isArray(o) && o !== null;
}

if (Array.isArray(array) && array.length) { // array exists and is not empty }