Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to find the last item in a javascript object

let obj = {a: "b", c: "d", e: "f"};

let lastItem = Object.values(obj).pop();
 
PREVIOUS NEXT
Tagged: #find #item #javascript #object
ADD COMMENT
Topic
Name
4+9 =