Google-libphonenumber validating phone number Cannot read property 'isValidNumber'
<p>I would like to validate a phone number with google-libphonenumber but its giving me an error while trying to do it.</p>

<blockquote>
  <p>console.log(phoneUtil.isValidNumber(phoneUtil.parse('202-456-1111',
  'US')));
                       ^</p>
  
  <p>TypeError: Cannot read property 'isValidNumber' of undefined</p>
</blockquote>

<p>And thats how i'm doing the validation</p>

<pre><code>var phoneUtil = require('google-libphonenumber').phoneUtil
        , PNF = require('google-libphonenumber').PhoneNumberFormat
        , PNT = require('google-libphonenumber').PhoneNumberType;
console.log(phoneUtil.isValidNumber(phoneUtil.parse('202-456-1111', 'US')));
</code></pre>

<p>This code i got from a website, i couldn't find inside the api documentation, i was trying to test using this to see if it works, i couldn't find anything that gives me a direction how to validate this any phone number.</p>

<p>Whats the problem?</p>