Home > front end >  multiple arguments and conditions in a function in javascript
multiple arguments and conditions in a function in javascript

Time:01-14

I have a function that return some informations about employees from an object database

I'm facing some complexity ESlint Problems, so i need to find a way to minimize it or find a smart way to do this instead of using a whole set of if statements.

I'm also trying to find a way to something like this: if I have name, I don't need to do the id verification and vice-versa and i just don't know how to do this...

  •  Tags:  
  • Related