Skip to content

Instantly share code, notes, and snippets.

@jonathan-fielding
Created February 17, 2021 19:31
Show Gist options
  • Select an option

  • Save jonathan-fielding/b9660894016aa1eed9f2a7f46477702a to your computer and use it in GitHub Desktop.

Select an option

Save jonathan-fielding/b9660894016aa1eed9f2a7f46477702a to your computer and use it in GitHub Desktop.

Revisions

  1. jonathan-fielding created this gist Feb 17, 2021.
    7 changes: 7 additions & 0 deletions object-values.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    const person = {
    name: 'Jonathan',
    age: 21,
    gender: 'male'
    }

    console.log(Object.values(person)); // Result [ 'Jonathan', 21, 'male' ]