How to traverse multiple meshes already loaded in the gltf file

Hi There,
Is it possible to traverse multiple meshes in a single trigger?
I am using the following code to traverse a single mesh. I would like to have multiple meshes traversed on a single trigger.

    gltf.scene.traverse ( function (child) {
        if (child instanceof THREE.Mesh) {  
            if ( == 'DM'){
                child.visible = true;
            } else {
                child.visible = false;