DS
https://github.com/dupontdenis/DS-JS-BD-REST.git
Sujet
https://docs.google.com/document/d/1FgX7ZPDhToiwaUKHMVJTYYNKQMQIwNsXngy-3uiR5IA/edit?usp=sharing
Lodash
🥇 code
_find docs at https://lodash.com/docs#find
DS : JS
1️⃣Clonez https://github.com/dupontdenis/JS-BD-REST.git
🪛Completez le code du contrôleur pour obtenir :
$ node index.js
[
{ id: 1, firstname: 'me', lastname: 'ME' },
{ id: 2, firstname: 'Bob', lastname: 'Leclair' }
]
[
{ id: 1, firstname: 'me', lastname: 'ME' },
{ id: 2, firstname: 'Bob', lastname: 'Leclair' },
{ id: 3, firstname: 'D', lastname: 'D' }
]
[
{ id: 1, firstname: 'me', lastname: 'ME' },
{ id: 2, firstname: 'Bob', lastname: 'Leclair' },
{ id: 3, firstname: 'Dupont', lastname: 'D' }
]
[
{ id: 1, firstname: 'me', lastname: 'ME' },
{ id: 2, firstname: 'Bob', lastname: 'Leclair' }
]
{ id: 1, firstname: 'me', lastname: 'ME' }
💡Amélioration du code du DM
Il existe des options pour les méthodes sur fs.