Answers for "how to find the last item in a javascript object"

1

how to find the last item in a javascript object

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

let lastItem = Object.values(obj).pop();
Posted by: Guest on April-15-2022

Code answers related to "how to find the last item in a javascript object"

Code answers related to "Javascript"

Browse Popular Code Answers by Language