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

sp core library.version.equals

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

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

Version.equals() method

Tests whether this version is equal to the input parameter.

Signature:

equals(compareWith: Version): boolean;

Parameters

Parameter Type Description
compareWith Version The version to compare with

Returns:

boolean

A boolean indicating if this version is equal to the input parameter

Remarks

Examples:

1.0.0 equals 1.0.0 -> true;
2.0.1 equals 2.0.0 -> false;
3.0   equals 3.0.0 -> true;
04.01 equals 4.1   -> true

Clone this wiki locally