isEmptyOrNullishObject

function isEmptyOrNullishObject(val): val is Object

Returns true if the specified object is either empty or all existing keys map to a nullish value

Parameters

ParameterTypeDescription
valunknownVariable to test

Returns

val is Object

Whether variable is empty or maps exclusively to nullish values