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

sp core library.validate.isnonemptystring

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

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

Validate.isNonemptyString() method

Throws an exception if the specified string is null, undefined, or an empty string.

Signature:

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

Parameters

Parameter Type Description
value string | 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