Logic for changing the skinned mesh( like topwear) with another skinned mesh

I wants to know how can i properly change a skinned mesh like topwear with another topwear on the go through code. I am using THREE.js on web.

Similar to what was mentioned on the other thread about equipping assets to the user for web integration, you can refer to section 3 on this documentation page on how to Equip asset to the user: Custom Avatar Creator - Ready Player Me