Cancelled

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

Skills: JavaScript, Node.js

See more: javascript mouse popup function, javascript scroll box mysql result, javascript database search function, javascript age determine function, indesign javascript help, quick javascript help coder, javascript aspnet mouseover function, javascript todays date function adobe field, need javascript help fix, div javascript code implement plus minus collapse expand, javascript date age function, ccbill help implement payment, javascript website search function, javascript dump cookies function, implement function excel, javascript add attribute function, javascript age years function, javascript ajax bing search result, javascript help function

About the Employer:
( 25 reviews ) København, Denmark

Project ID: #28367143

15 freelancers are bidding on average €90 for this job

bhavesh1508

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

€140 EUR in 7 days
(22 Reviews)
6.5
bobrovpavelwork

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

€140 EUR in 1 day
(9 Reviews)
4.7
MukhammedAli

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

€100 EUR in 7 days
(7 Reviews)
4.4
soshiv

HI, i can help you to create that function. please come over chat and discuss in some details. Thanks.

€50 EUR in 1 day
(10 Reviews)
3.9
Ashu20040808

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!

€50 EUR in 1 day
(29 Reviews)
4.0
BilalSohail2

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

€40 EUR in 1 day
(8 Reviews)
3.8
vinaysudani

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

€50 EUR in 1 day
(5 Reviews)
3.5
arajat0

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.

€100 EUR in 1 day
(7 Reviews)
2.9
RobertLiang1993

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

€50 EUR in 3 days
(1 Review)
2.7
aymenoppa

Hi i've red your pastebin and post still need more explanation you have list of countries you want to filter them out based on 2 params i need flowchart of critea conditions you can tell them to me in message i'm sen More

€50 EUR in 2 days
(2 Reviews)
1.4
DusanOct

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

€200 EUR in 5 days
(1 Review)
1.0
keshavgarg0696

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

€70 EUR in 2 days
(0 Reviews)
0.0
PixelsInn

Hello, I have read your job details and criteria and understand the requirements necessary for this project. I have solid experience of the stack of technologies required for this project. I have bit questions accord More

€200 EUR in 7 days
(0 Reviews)
0.0
baqarii

hi, I already did this. but you need to test my code. :3

€70 EUR in 1 day
(0 Reviews)
0.0
mirmahathir1

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

€40 EUR in 7 days
(0 Reviews)
0.0