SyntaxFix
Write A Post
Hire A Developer
Questions
use es6 deconstruction array with the spread operator
var last = [...yourArray].pop();
note that yourArray doesn't change.