Skip to content
This repository has been archived by the owner on Oct 23, 2021. It is now read-only.

sp core library.validate.istrue

John Nguyen edited this page Apr 22, 2021 · 2 revisions

Home > @microsoft/sp-core-library > Validate > isTrue

Validate.isTrue() method

Throws an exception if the specified value is not true.

Signature:

static isTrue(value: boolean | undefined | null, variableName: string): void;

Parameters

Parameter Type Description
value boolean | undefined | null the value to check
variableName string the program variable name, which will be mentioned in the error message

Returns:

void

Clone this wiki locally