function isEmpty(obj) {
if (Object.prototype.toString.call(obj) !== '[object Object]') return true
for (var attr in obj) {
return false
}
return true
}
function isEmpty(obj) {
rturn Object.keys(obj).length === 0
}