Answer the question
In order to leave comments, you need to log in
What is this approach called in OOP?
The essence of the approach in one large object:
const AppLoop = {
users: {
players: [{id: 1, nickname: Developer}],
clients: [{id: 1, userID: 1, balance: 2500}]
getUsers: () => [this.players.map(r => r), this.clients.map(r => r)]
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question