How can i get specific value in object.values (node.js) from my code

Issue

This Content is from Stack Overflow. Question asked by Nothing

Hi everyone!

im trying to reach specific value in my code. now i really need your helps. i need to log every command values using console.log()

  {
  'beta-1.js': [AsyncFunction: handler] {
    help: [ 'beta' ],
    tags: [ 'beta' ],
    command: /^(first)$/i
  },
  'beta-2.js': [AsyncFunction: handler] {
    help: [ 'beta' ],
    tags: [ 'beta' ],
    command: /^(second)$/i
  },
  'beta-3.js': [AsyncFunction: handler] {
    help: [ 'beta' ],
    tags: [ 'beta' ],
    command: /^(last)$/i
  }

when im using console.log(Object.keys()) it will return these values :

[
  'beta-1.js',
  'beta-2.js',
  'beta-3.js'
]

but i want to print every command values in console.

I hope someone can solve it



Solution

Check the Answers

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?