0

I have to convert this array into List or set as I am working with Spring boot where I have mentioned this particular this as a list.

this.employee.project=[this.projectByName];

1 Answer 1

3
const array = [1,2,3,3];
const set = new Set(array);

Javascript doesn't have List in the standard library.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.