check if object size is 0 code example Example: javascript object length var size = Object.keys(myObj).length;