fchierad / PRD

Repository to store ECMAScript code used in workflows created with the product NetIQ Identity Manager.
MIT License
2 stars 2 forks source link

Dedup & Diff #2

Closed bshefflette closed 6 years ago

bshefflette commented 6 years ago

Could you add an optimized array dedup and array diff w/ optionial param for ignored or exact case.

fchierad commented 6 years ago

Just to confirm since most RBPM back-end pieces uses arrays and Vectors with one level and strings, would it be OK for the initial release of the requested functionality to focus on 1 level array/Vector of strings?

bshefflette commented 6 years ago

Yes that'd be great, thank you!

fchierad commented 6 years ago

Deduplication is code complete and tested/validated, will be PRD.util.Unique().

Diff will be PRD.util.Compare and development is in progress. Initial plan is to return an array of arrays where the return will be [ [elements only in first parameter], [elements only in second parameter], [elements in both] ].

Given how everything we retrieve from flowdata in RBPM are text nodes this first iteration coerces the input values to string and assumes uni-dimensional arrrays/vectors as inputs.

fchierad commented 6 years ago

testing completed.