FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Prototype methods, objects without __proto__ by longo-andrea · Pull Request #213 · javascript-tutorial/it.javascript.info · GitHub

Prototype methods, objects without __proto__ - #213

Merged
longo-andrea merged 2 commits into
javascript-tutorial:masterfrom
longo-andrea:article/prototype-methods
Feb 22, 2021
Merged

Prototype methods, objects without __proto__#213
longo-andrea merged 2 commits into
javascript-tutorial:masterfrom
longo-andrea:article/prototype-methods

Conversation

Copy link
Copy Markdown
Contributor

No description provided.

- [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`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality
Suggested change
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`.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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.

Dorin-David left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Ottima traduzione! Ho suggerito un paio di modifiche

Copy link
Copy Markdown

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`.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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>
longo-andrea merged commit cb2fa2e into javascript-tutorial:master Feb 22, 2021

Copy link
Copy Markdown

Thank you 💖 I updated the Progress Issue #1 🎉 🎉 🎉

longo-andrea deleted the article/prototype-methods branch March 7, 2021 20:06
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL