diff

diff

diff

Encapsulates all funcationality for diffs

Metadata

convertDiffToHighlights()

Takes a diff array and returns a left and right highlighted result

Arguments

Name Type Required Default Options Description
aDiff array Yes

getDiff()

Returns an array of diff structs

Arguments

Name Type Required Default Options Description
old string Yes Original array of words to compare
new string Yes New array of words to compare

getHTMLAsText()

Converts html to plain text indented according to nesting

Arguments

Name Type Required Default Options Description
html string Yes

init()

Arguments

Name Type Required Default Options Description
None

performObjectDiff()

Performs diff on all visible properties according to their type

Arguments

Name Type Required Default Options Description
left struct Yes
right struct Yes
stMetadata struct No [runtime expression]

performPropertyDiff()

Performs diff on the property according to its type

Arguments

Name Type Required Default Options Description
typename String Yes
left String Yes
right String Yes
stMetadata String Yes

stringToArray()

Returns the string as an array of characters

Arguments

Name Type Required Default Options Description
s string Yes

structCreate()

Creates and populates a struct with the provided arguments

Arguments

Name Type Required Default Options Description
None