Typescript Unique Array Of Strings Matlab Function With Multiple Outputs