Suljettu

Write an iPhone application

If a key exists in both the objects then look at their datatypes and if they matches and

a. If both are of String type then concate the values

b. If both are number then add those

c. If both are arrays then merge the arrays(duplicates are allowed)

d. If both are objects, then same definition is followed.

e. If a key exists in one of the object and it doesn't exists in another object then keep the key and its values

Else

If a key exists in both the objects but it has differnt types then delete the key/value in final merged object.

e.g.

If the objects are as follows:

var object1 = {

'key1' : 10,

'key2' : 'Hello ',

'key3' : ['I', 'am'],

'key4' : {

'key5' : 'Hi',

'key6' : 11

}

};

var object2 = {

'key1' : 11,

'key2' : 'World',

'key3' : ['an', 'Array'],

'key4' : {

'key5' : ' there',

'key6' : '#SomeRandomString'

}

};

var result = mergeObjects(object1, object2);

[url removed, login to view]([url removed, login to view](result));

// Should return following:

{

'key1' : 21,

'key2' : 'Hello world',

'key3' : ['I', 'am', 'an', 'Array'],

'key4' : {

'key5' : 'Hi there'

}

}

please download the .swift file for idea of this task.i want to complete in Swift language .i will give you 5 star rating if you can solve this problem.

Taidot: iPhone, Mobile App Development

Näytä lisää: phone log application iphone, write chat application iphone, iphone call log application, write camera application iphone, write application iphone php, iphone write myspace application, iphone write application locator, application iphone log, write custom application iphone, gps tracking application iphone, organiser application iphone, develop application iphone, gps tracker application iphone, organizer application iphone, radio application iphone, countdown application iphone, word application iphone, apples voip application iphone

About the Employer:
( 0 reviews ) India

Projektin tunnus: #13079507

7 freelanceria on tarjonnut keskimäärin 3588 ₹ tähän työhön

vermamukesh67

Hello mate, Hope you are doing well. i am professional senior mobile app developer having experience in native mobile app development. I have professional team of ios, android, game developer, .net,php developers Lisää

1300 ₹ INR 1 päivässä
(6 arvostelua)
3.7
vasoyapayal

Hi "High Quality + Powerful Service + Rapid Communication!" is my forever business policy! I just read your job posting with interest and carefully, and I’m waiting for you ardently. To be important is ability to co Lisää

16666 ₹ INR 8 päivässä
(12 arvostelua)
4.0
Techguys2k19

We are having 3+ year experience developers. We are the team of iOS,Android, PHP developers. We have done more than 50+ apps and website. We can perform this task in less time with less money. Ping me for more Lisää

1300 ₹ INR 1 päivässä
(0 arvostelua)
0.0
1300 ₹ INR 1 päivässä
(0 arvostelua)
0.0
techwizards2

Dear Client, Greeting of the day ahead !!! Thanks for providing us opportunity to place bid over the project and communicate with you. I am a serious bidder here and i have already worked on a similar project befor Lisää

1250 ₹ INR 6 päivässä
(0 arvostelua)
0.0
DeepakSingh1508

Hi, It will be great owner for me to work on this app and I'm sure I solve your problem. Thanks, Deepak Singh

1300 ₹ INR 1 päivässä
(0 arvostelua)
0.0
sathish4545

I will do this in 1 hr

1250 ₹ INR 1 päivässä
(0 arvostelua)
0.0
DiVi95

Hi, I would like to do this task in free, after completion you can offer me a project.

800 ₹ INR 1 päivässä
(0 arvostelua)
0.0
maxifame

A proposal has not yet been provided

2000 ₹ INR 2 päivässä
(0 arvostelua)
0.0