Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/node-core-library > Path > isEqual

Path.isEqual() method

Returns true if path1 and path2 refer to the same underlying path.

Signature:

static isEqual(path1: string, path2: string): boolean;

Parameters

ParameterTypeDescription
path1string
path2string

Returns:

boolean

Remarks

The comparison is performed using path.relative().