-1

I am using window XP and has chrome version 49.0.2623.75 because of my project requirement. I am using rest operator as below:

this.dict = this.header.reduce((obj, k, i) => ({...obj, [k]: this.class[i] }), {})

Above code is working fine in latest version of chrome but throwing error in chrome 49. Please can anyone suggest me how could i make work the same code for chrome 49 as well.

Regards Isha

0

I want to post the answer of the above question: this.header.reduce(function (obj, k, i){obj[k] = this.class[i];return obj;},{})

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.