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

Parameter Type Description
path1 string  
path2 string  

Returns:

boolean

Remarks

The comparison is performed using path.relative().