I have below key, value pairs of object.
let stores = [{
"recommendation": {},
"storeNumber": "5758-13907",
"id": "15051",
"name": "La Cienega & Gregory Way",
"phoneNumber": "310-659-9562",
"coordinates": {
"latitude": 34.063584,
"longitude": -118.376354
}......
I am trying to iterate through to get all [cordinates][latitude] and [cordinates][longtitude] with leaflet API and have the following code.
for(var [index, store] of stores.entries()) {
var latlng = new L.marker( store["coordinates"]["latitude"],
store["coordinates"]["longitude"]);
but all the time latlng varaible is null. how to get latlng value using leaftlet API please