UNPKG

@fleetbase/ember-ui

Version:

Fleetbase UI provides all the interface components, helpers, services and utilities for building a Fleetbase extension into the Console.

10 lines (7 loc) 212 B
import { isBlank } from '@ember/utils'; export default function isEmptyObject(obj) { if (isBlank(obj)) { return true; } return obj.constructor === Object && Object.keys(obj).length === 0; }