core3-utils

@wixc3/common on Github

Home > @wixc3/common > equalIdents

equalIdents() function

Matches the indentation of modified to the one of reference

Signature:

export declare function equalIdents(reference: string, modified: string, newline?: string): string;

Parameters

Parameter Type Description
reference string
modified string
newline string _(Optional)_

Returns:

string