The name of a callback function where the callback function takes three parameters.
Return value A new array with each element being the result of the callback function.
Deployment of the callback function on site.
Users may not change the array itself from the callback function.
In the example the callback function simply alerts the visitor that the data has been received.
Dans l'exemple, la fonction callback alerte simplement le visiteur que les données ont bien été reçues.
In case of matching event, these three arguments are passed to the callback function: fd
Dans le cas d'un évènement qui correspond, ces trois arguments sont passés à la fonction callback: fd
The function to be run is the callback function.
La fonction à exécuter est la fonction de callback.
Usually when using two or more arrays, they should be of equal length because the callback function is applied in parallel to the corresponding elements.
Généralement, lors de l'utilisation de plusieurs tableaux, ils doivent être d'égale longueur, car la fonction de callback est appliquée de manière similaire à tous les tableaux.
This means that you can switch the error mode temporarily and return to callback mode without specifying the callback function again.
Cela signifie que vous pouvez changer le mode d'erreur temporairement et retourner au mode callback sans avoir à re-spécifier la fonction de callback.
Node uses an "error-first callback" convention for returning errors from asynchronous functions, where the first parameter to the callback function is the error object, followed by result data in succeeding parameters.
Node utilise la convention de "rappel error-first" pour renvoyer les erreurs issues des fonctions asynchrones, dans laquelle le premier paramètre de la fonction callback est l'objet error, suivi par les données de résultat dans les paramètres suivants.
reduce executes the callback function once for each element present in the array, excluding holes in the array, receiving four arguments
reduce exécute la fonction callback une fois pour chaque élément présent dans le tableau et ignore les éléments vides du tableau.
rules can also handle an array here, but the callback function you provide will obviously need to properly handle an array of values.
peuvent aussi gérer ici un array, mais la fonction callback que vous fournissez doit alors absolument bien gérer ces tableaux de valeurs.
Don't forget to close the callback function properly with a brace, to close the brackets that contain the function, and to place the infamous semicolon.
N'oubliez pas de bien fermer la fonction de callback avec une accolade, puis de fermer les parenthèses d'appel de la fonction qui l'englobe, puis de placer le fameux point-virgule.