title: Intersect between Polygon and Multipolygon using turfjs
body: <p>I ran an error using turfjs performing intersect function of <a href="http://turfjs.org/" rel="nofollow noreferrer">turfjs</a></p>
  
  <p><a href="https://i.stack.imgur.com/aSv2Z.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aSv2Z.png" alt="enter image description here"></a></p>
  
  <p>The drawn layer is "Polygon" while I want it to be intersect in a "MultiPolygon" layer.</p>
  
  <p>Here's the snippet of my code:</p>
  
  <pre><code>$.getJSON("FloodHazard_CRB_100Year.json", function(baha) { 
              //addDataToMap(data, map); 
              console.log(json);
              console.log(baha);
              //check_intersect(baha,json);
              f1 = baha.features;
              f2 = json.features;
  
              var conflictlist;
  
              for (var i = 0; i &lt; f1.length; i++) {
                  var parcel1 = f1[i];
                  for (var j = 0; j &lt;f2.length; j++) {
                      var parcel2 = f2[j];
                      //console.log("Processing",i,j);
                          var conflict = turf.intersect(parcel1, parcel2);
                          if (conflict != null) {
                              conflictlist = conflict;
                          }
                  }
              }
              var intersect_style = {
                  fillColor: "#ff0000",
                  color: "#000",
                  opacity: 1,
                  weight:0.5,
                  fillOpacity: 0.8
              };
              L.geoJson(conflictlist,{
                  style: intersect_style
              }).addTo(map);
              console.log(conflictlist);
  
              //check_intersect(json);
          });
  </code></pre>