V
V
Vladimir2020-05-01 00:00:37
JavaScript
Vladimir, 2020-05-01 00:00:37

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

1 answer(s)
S
Sergey, 2020-05-01
@KingstonKMS

Error in code

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question