Object-oriented programming is the king of the back end and the best for security apps, but a Functional Programming approach shines for other tasks. There are other tasks that do well with a functional technique. If you want to deal with unchanging values such as in mathematical calculations, functional programming is better. It’s better if you are not concerned with lower security concerns but want to produce solid and reliable apps.
You can watch this video on Functional Programming and OOP to understand more: