I see the following way of writing the Arrow function, but I don't know what it means.
Could you tell me the meaning of this Arrow function?
.then(server=>{
console.log("server", server);
return Promise.all([[]
server.getPrimaryService(this.BUTTON_SERVICE_UUID)
]);
})
Arguments in the Arrow function do not need to be parentheses if there is only one argument, so
.then(server)=>{
//
})
Same as
© 2024 OneMinuteCode. All rights reserved.