isPlatform(query) {
    return compare(
      UserAgentData.platformName,
      UserAgentData.platformFullVersion,
      query,
      normalizePlatformVersion
    );
  }
Check if the User Agent platform matches `query`.

`query` should be a string like "Windows" or "iOS 5 - 6".

Valid platform names include:

- Android
- BlackBerry OS
- Java ME
- Linux
- Mac OS X
- Mac OS X Calendar
- Mac OS X Internet Account
- Symbian
- SymbianOS
- Windows
- Windows Mobile
- Windows Phone
- iOS
- iOS Facebook Integration Account
- iOS Facebook Social Sharing UI
- webOS
- Chrome OS
- etc...

An authoritative list can be found in the PHP `PlatformDetector` class and
related classes in the same file (see calls to `new UserAgentPlatform`
here: https://fburl.com/50729226).

@note Function results are memoized

@param {string} query Query of the form "Name [range expression]"
@return {boolean}