• function

can.isEmptyObject

 

Check if an object has no properties.

can.isEmptyObject(obj)

Parameters

  1. obj {Object}

    The object to check.

  2. Whether {Boolean}

    the object is empty.

can.isEmptyObject(obj) returns if an object has no properties similar to jQuery.isEmptyObject.

can.isEmptyObject({})      //-> true
can.isEmptyObject({a:"b"}) //-> false