
Need help in modifying the typescript code
- or -
Post a project like this1912
$30
- Posted:
- Proposals: 7
- Remote
- #2778697
- Awarded
Description
Experience Level: Entry
There are multiple enum maps which I am looking to convert to array by removing their common substring. There should be a single function which can run for multiple enum maps and can remove common substring of variable length and return array with string. For example
enum Test {
test_value_error = 1;
test_value_log = 2;
test_value_main = 3;
test_value_acknowledge = 4;}
enum Test1 {
short_set_measure = 5;
short_set_log_check = 6;
short_set_finite_check = 7;}
there will be multiple enums with multiple string length as given above. I have made the enum object convert to array but can't figure out the way to remove common substring in multiple enums
enum Test {
test_value_error = 1;
test_value_log = 2;
test_value_main = 3;
test_value_acknowledge = 4;}
enum Test1 {
short_set_measure = 5;
short_set_log_check = 6;
short_set_finite_check = 7;}
there will be multiple enums with multiple string length as given above. I have made the enum object convert to array but can't figure out the way to remove common substring in multiple enums

Swati P.
100% (2)Projects Completed
4
Freelancers worked with
3
Projects awarded
25%
Last project
14 Nov 2020
United States
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
I have resolve for this
907144
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies