結果 : how to compare object properties in javascript