UNPKG

@automattic/calypso-products

Version:

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

6 lines (4 loc) 207 B
import { PLAN_CENTENNIAL_PERIOD } from './constants'; export function isCentennially( product: { bill_period: string } ): boolean { return parseInt( product.bill_period, 10 ) === PLAN_CENTENNIAL_PERIOD; }