We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://github.com/yangshun/front-end-interview-handbook/blob/master/questions/javascript-questions.md#make-this-work
/** * @author xgqfrms * @license MIT * @description ES6 String Duplicate * @param {Array} arr */ let arr = [1, 2, 3, 4, 5]; const ES6_String_Duplicate = arr => `${arr.toString()},`.repeat(2).slice(0, -1).split(`,`).map(item => parseInt(item)); ES6_String_Duplicate(arr); // (10) [1, 2, 3, 4, 5, 1, 2, 3, 4, 5]
The text was updated successfully, but these errors were encountered:
I'm sorry but this approach is convoluted and longer than it needs to be. I would rather not add this in.
Sorry, something went wrong.
OK, fine!
Fix typo in Front End Interview questions (#95)
8396d8e
Fix typo in Front End Interview questions (yangshun#95)
73187b4
No branches or pull requests
ES6 String Duplicate
https://github.com/yangshun/front-end-interview-handbook/blob/master/questions/javascript-questions.md#make-this-work
The text was updated successfully, but these errors were encountered: