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

sp core library.version.isvalid

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

Home > @microsoft/sp-core-library > Version > isValid

Version.isValid() method

Test whether a string is a valid version specifier.

Signature:

static isValid(versionString: string | undefined | null): boolean;

Parameters

Parameter Type Description
versionString string | undefined | null The version string

Returns:

boolean

true if the versionString is a valid version specifier

Clone this wiki locally