SyntaxFix
Write A Post
Hire A Developer
Questions
You can remove an entry from your map by explicitly assigning it to 'undefined'. As in your case:
myArray["lastname"] = undefined;