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) 204 B
import { PLAN_TRIENNIAL_PERIOD } from './constants'; export function isTriennially( product: { bill_period: string } ): boolean { return parseInt( product.bill_period, 10 ) === PLAN_TRIENNIAL_PERIOD; }