How to separate isolated parts of a mesh?

Hi guys~
Is there a way to separate two disconnected parts of a mesh in Threejs, or any ideas to share?