Why isn’t js’s map method sequential to the elements of the collection?

  node.js, question

The following is my code

function disconnectall() {
 server.app.peripherals.map(function(peripheral){
 console.log(peripheral.id);
 peripheral.disconnect(function(error){
 if(error){
 console.log(error);
 }else{
 Log ("disconnect" plus peripheral.id);  bracket
 })
 });
 bracket

Let’s assume that peripherals contains two elements, and the ID of the two elements are 01 and 02 respectively.
Then I understand that the output of this function when called should be
01
disconnect 01
02
disconnect 02

But in fact the output I get is
01
02
disconnect 01
disconnect 02

My question is whether the set elements are operated in sequence in the description of the map method, and if so, whether the next element is operated after the operation of one element is completed.

Asynchronous. There is no blocking code to execute quickly.