UNPKG

@automattic/calypso-products

Version:

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

13 lines 604 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isGSuiteProductSlug = isGSuiteProductSlug; const constants_1 = require("./constants"); /** * Determines whether the specified product slug is for G Suite Basic or Business. * @param {string} productSlug - slug of the product * @returns {boolean} true if the slug refers to G Suite Basic or Business, false otherwise */ function isGSuiteProductSlug(productSlug) { return [constants_1.GSUITE_BASIC_SLUG, constants_1.GSUITE_BUSINESS_SLUG].includes(productSlug); } //# sourceMappingURL=is-gsuite-product-slug.js.map