Inffuse.user.is
Helper function to check the plan of the user
Syntax
Inffuse.user.is(plan)
Parameters
Name | Type | Description |
---|---|---|
plan |
string | Plan to test against. |
Example
if (Inffuse.user.is('premium'))
console.log("Premium user...");