Transform Object To Array Js Functions Explained In Python