JSFiddle - React, Tailwind, and code Playground

by Kevin Faulhaber

HTML

<script src="http://maps.googleapis.com/maps/api/js"></script>

JavaScript

var buf = []; 
var pos1  = new google.maps.LatLng(1, 2); buf.push(pos1); 
var pos2  = new google.maps.LatLng(3, 4); buf.push(pos2); 
var pos3  = new google.maps.LatLng(5, 6); buf.push(pos3); 

//initialize a new object here
var pos4  = new google.maps.LatLng(3, 4);

if ( pos2.LatLng == pos4.LatLng ) 
    alert("yes");
else
    alert("no");