NodeJS/Javascript Help to implement a function which result depending of different criteria
Budget €30-250 EUR
- Freelancer
- Jobs
- JavaScript
- NodeJS/Javascript Help to implement a function which result depending of different criteria
Hello,
This project is for someone which can help via TeamViwer/AnyDesk and on a budget of 50E in case to discuss if there are solid reasons to change.
The issue I have is about this
[login to view URL]
I have to build a function which takes 2 params and on that return based on criteria:
My trying
[login to view URL]
Criteria:
// 1. is default, same country, active
// 2. is default, same country, inactive
// 3. is default, any country, active
// 4. is default, any country, inactive
// 5. sites(active).length === 1
// 6. undefined
The result of this function is a siteId based on those criteria.
Number 5 means if default is false every where but we have one active site and we choose that one
Number 6 is just a return in case no one of the criteria is fulfill means an empty result {}
Sites is an array of OBJ
[login to view URL]
In this OBJ example is missing status which can be ACTIVE or INACTIVE I forgot to result it when I copy/paste.
What I need a solution to those criteria based on that array of OBJ and locale data.
Thanks
15 freelancers are bidding on average €90 for this job
Hey, I assure you I can help you with this! I am a confident NodeJS developer with 10+ years experience! I have knowledge in other tech stacks also but as you required Senior NodeJS developer , I'm sharing my past work More
Hello ! When reviewing the job description, I felt I was a great fit for this role. I have extensive knowledge of front-end JavaScript and browser APIs as well as significant experience with popular frameworks and libr More
Dear Client I read your description and can know that you want a Web/Node.js expert. As a Senior developer, I have over 5 years of rich experience by developing with Node.js([login to view URL], Vue.js, Angular.js), Python, PH More
HI, i can help you to create that function. please come over chat and discuss in some details. Thanks.
Hi Jakub, I am experienced in node js too and you are already familiar with my problem solving abilities. I can definitely help you in your budget. Let's begin!
hi mate, I am professional freelancer, I have worked with "heavenya" as the backend developer, I have worked with API's endpoint(node js +express+ mongo db) and socket's event(socket io) as well. I have seen the code a More
Hi there, I have 4+ years of experience developing web applications and APIs with various tools and technologies. I can write a function which returns the expected result. Drop me a message to get started. Thanks
Hello, My understanding is you want to check values progressively to get final value based on the condition on previous values. I can help you achieve this. Please ping for further details. Thanks.
Hi I checked your description, I guess you just want to implement a if-else clause to return different result. Although I'm not clear what siteId you gonna return base on different condition. But what you can do is usi More
Hello Client I am ready to work on your project I have rich experience with Nodejs I can do your project perfectly If you have any opinion, please let me know on chat I hope you are fine always Thanks
Hi I am a Mean and Mern stack developer, and worked on several e-commerce projects. I have hands experience with building Restful Api, making logic controllers. I have read your requirement and found my skill set f More
I have carefully looked at your skill requirements and every aspect of your project matches my currently working skillset and therefore I am applying for this [login to view URL] will find me highly qualified in completing your gi More