Add method to object property forEach method tcoo object property and array property