I'm using SSJS to pull api data and build emails. I have an array built that has some duplicate data in it. I'm looking for anyway to remove the duplicate information. I've tried all the regular JS methods, filter, spread operator, etc... but not seem to the trick. Does anyone have any experience with or any ideas?
var uniqe_mls_array = [...Set new(mls_text_array)]; // Didn't work, can't use new
Any help would be greatly appreciated, thank you.