import { isObject } from "./isObject" ; example export function isEmpty ( arg ) { if ( Array . isArray ( arg ) ) return ! arg . length ; if ( isObject ( arg ) ) return ! Object . keys ( arg ) . length ; if ( arg == null ) return true ; if ( arg === "" ) return true ; return false ; }