I have a object with function
{
ready(_callback) {
_callback();
},
Map() {
this.geoObjects = () => {
return {
add() {},
get() {
return {
removeAll() {},
add() {},
};
},
}
};
this.setCenter = () => {};
this.setZoom = () => {};
},
},
an then I write
Map: function () { // it is a constructor
Map() { // it is not a constructor
Map: () => { //it is not a constructor
Why? Help pls. And how to write this object with a constructor function on ES6 format?