function isMacintosh() {
  if (useUserAgentDataPlatform()) {
    return util.getUserAgentData().platform === 'macOS';
  }
  return util.matchUserAgent('Macintosh');
}
@return {boolean} Whether the platform is Mac.