return and remove properties from object typescript code example Example: nodejs delete object key delete obj.firstname;