結果 : check if object has all properties javascript