UNPKG

@automattic/calypso-products

Version:

This module contains information about the various products sold within calypso, such as product slugs, plan intervals, etc.

12 lines (10 loc) 570 B
import { isGSuiteExtraLicenseProductSlug } from './is-gsuite-extra-license-product-slug'; import { isGSuiteProductSlug } from './is-gsuite-product-slug'; /** * Determines whether the specified product slug refers to any type of G Suite product. * @param {string} productSlug - slug of the product * @returns {boolean} true if the slug refers to any G Suite product, false otherwise */ export function isGSuiteOrExtraLicenseProductSlug( productSlug: string ): boolean { return isGSuiteProductSlug( productSlug ) || isGSuiteExtraLicenseProductSlug( productSlug ); }