Forum Discussion
Hi Sir Barry,
Good day, I would suggest to use match for string comparison the return will be an array of string then you can dedups the array to get the unique
sl.ensureArray(“L_TYPE “A”\r\nL_TYPE “A”\r\nL_TYPE “A”\r\nL_TYPE “B”\r\nL_TYPE “B”\r\nL_TYPE “B”\r\nL_TYPE “C”\r\nL_TYPE “C”\r\nL_TYPE “C”\r\nL_TYPE “D”\r\nL_TYPE “D”\r\nL_TYPE “D””.match(/L_TYPE “C”/gm)).filter((a,b,c)=> c.indexOf(a) == b).join()