How to render specific type of elements from the IFC model

I have a requirement to render specific type of building elements using an IFC model.

I successfully render the whole IFC model using ThreeJS IFCloader by following this example https://threejs.org/examples/?q=ifc#webgl_loader_ifc.

But my requirement is to render only specific type of elements(objects) from the IFC model based on IfcEntity .
How can I archive that in ThreeJS ?