Prototype methods, objects without __proto__ by longo-andrea · Pull Request #213 · javascript-tutorial/it.javascript.info
| - [obj.hasOwnProperty(key)](mdn:js/Object/hasOwnProperty): ritorna `true` se `obj` possiede una sua chiave `key` (non ereditata). | ||
|
|
||
| All methods that return object properties (like `Object.keys` and others) -- return "own" properties. If we want inherited ones, we can use `for..in`. | ||
| Tutti i metodi che ritornano le proprietà di un oggetto (come `Object.keys` e le altre) -- ritornano le proprietà "possedute". Se vogliamo ottenere anche le proprietà ereditate dobbiamo utilizzare un ciclo `for..in`. |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Tutti i metodi che ritornano le proprietà di un oggetto (come `Object.keys` e le altre) -- ritornano le proprietà "possedute". Se vogliamo ottenere anche le proprietà ereditate dobbiamo utilizzare un ciclo `for..in`. | |
| Tutti i metodi che ritornano le proprietà di un oggetto (come `Object.keys` e le altre) -- ritornano le proprietà scritte nell'oggetto stesso. Se vogliamo ottenere anche le proprietà ereditate dobbiamo utilizzare un ciclo `for..in`. |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Secondo me qui "possedute" va bene, serve a far capire bene che non si parla di tutte le proprietà, ma solo di quelle non ereditate.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ottima traduzione! Ho suggerito un paio di modifiche
Please make the requested changes. After it, add a comment "/done".
Then I'll ask for a new review 👻
| - [obj.hasOwnProperty(key)](mdn:js/Object/hasOwnProperty): ritorna `true` se `obj` possiede una sua chiave `key` (non ereditata). | ||
|
|
||
| All methods that return object properties (like `Object.keys` and others) -- return "own" properties. If we want inherited ones, we can use `for..in`. | ||
| Tutti i metodi che ritornano le proprietà di un oggetto (come `Object.keys` e le altre) -- ritornano le proprietà "possedute". Se vogliamo ottenere anche le proprietà ereditate dobbiamo utilizzare un ciclo `for..in`. |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Secondo me qui "possedute" va bene, serve a far capire bene che non si parla di tutte le proprietà, ma solo di quelle non ereditate.
Co-authored-by: Dorin-David <70648503+Dorin-David@users.noreply.github.com> Co-authored-by: Simone Pasini <66781510+pasor1@users.noreply.github.com>
Thank you 💖 I updated the Progress Issue #1 🎉 🎉 🎉
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters