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