Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript last element

// es13(2022)
let foo = [1,2,3,4,5];
foo.at(-1); // === 5
Source by www.codegrepper.com #
 
PREVIOUS NEXT
Tagged: #javascript #element
ADD COMMENT
Topic
Name
8+1 =