Code works but will not deploy

I have some code that works in debug but will not deploy. some examples:

bks.forEach(element => {
bookList.push(element.book);
});

and

let uBookList = [...new Set(bookList)];

I assume the syntax is not allowed by deploy parser?
Sign In or Register to comment.