type HashMap.
Is it a bad practice to create a methods setTheHashMap() and getTheHashMap() to let others being able to get and modify the map without letting the class to know it?
it's ok if you follow OO programming (and you use es6 classes), I would do it, but give a more meaningful name to the get/set method
Обсуждают сегодня