I have been mostly writing Object-oriented code in my day to day work and have little experience with functional programming.
In JavaScript/typescript code, we can definitely pass objects as parameters to functions. My question is whether passing objects to functions violates the functional programming paradigm as I am mixing object oriented code with functional style programming. (Even though The object passed into the function does not get mutated).
For example, if I have a function f(x,y) => z where x is an object that defines some interface. Object x makes a network call to access some resource which is used to compute z. We can say that such a function still adheres to the functional programming concept of it having no side effects and it being pure even though there is mixing of OO code in the function parameter ?
Hope my question was clear.