Skip to content
Advertisement

Refactoring method with Optional to one line [closed]

I have a method in my Service for updating existing organisations.

JavaScript

How to refactor this method to one line?

It should be something like this:

JavaScript

Advertisement

Answer

This is what I was looking for:

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement