@AurelienLoyer
@AurelienLoyer
@AurelienLoyer
T3kstiil3
@ZenikaMontreal
function getUsers() {
this.users = []
fetch('/url/user.json')
.then(resp => resp.json())
.then(users => getUsersInfos(users))
.then(users => users.filter(user => user.connected === true))
.then((users) => {
this.users = users
});
}
const handler = {
get:(obj, prop) => {
return prop in obj ? obj[prop] : 37;
}
};
const p = new Proxy({}, handler);
p.a = 1;
p.b = undefined;
console.log(p.a, p.b); // 1, undefined
console.log('c' in p, p.c); // false, 37
Budget
Community
You already know everything about javascript !
Easy to migrate !
A man in the street
🙏
Tout le monde pense savoir utiliser
Angular / React / Vue.js ...
Mais connaissons-nous vraiment JavaScript ?
@AurelienLoyer