title: Is there any way I can compare message arguments to a .json file
body: <p>I have this code:</p>
  <pre><code>const Command = require(&quot;../Structures/Command.js&quot;);
  const { menu } = require(&quot;../data/menu.json&quot;);
  
  module.exports = new Command({
      name: &quot;order&quot;,
      description: &quot;Make an order&quot;,
  
      async run(message, args, client){
          args.toString().toLowerCase();
              switch(args[1]){
              case menu[1]:
                  message.reply(`accepted your order for ${menu[1]}!`);
                  break;
              case menu[0]:
                  message.reply(`accepted your order for ${menu[0]}`);
                  break;
              case menu[2]:
                      message.reply(`accepted your order for a ${menu[2]}`);
                      break;
              default:
                  message.reply(`sorry, we either don't serve that here, or you didn't say what you want to order`);
              }
      }
      })
  </code></pre>
  <p>And what I want it to do:</p>
  <ul>
  <li>Check args</li>
  <li>Compare if args are any of the menu elements</li>
  <li>Give an answer based on the element <br>
  Like:</li>
  </ul>
  <pre><code>if(args == menu){
      message.reply(`accepted your order for ${menu[args]}!`);
  }
  </code></pre>
  <p>menu.json:</p>
  <pre><code>{
      &quot;menu&quot;: [&quot;coffee&quot;, &quot;donut&quot;, &quot;tea&quot;]
  }
  </code></pre>
  <p>I know it sounds a little bit confusing, but I hope you are able to help.</p>