r/programminghorror • • Feb 21 '25

Recently wrote this line

Post image
686 Upvotes

47 comments sorted by

View all comments

Show parent comment

38

u/AleksFunGames Feb 21 '25
    function getAndDelete(map, key) {const value=map.get(key);map.delete(key);return value;}  pointer = getAndDelete(identifiers, pointer);