I have two arrays that look like this:
array1 = ["org1", "org2", "org3"];
array2 = ["a", "b", "c"];
Using JavaScript, I want to convert two arrays of same length into array of objects that would look like this:
orgMSPID = [{"org1": "a"},{"org2": "b"}, {"org3": "c"}]
Please anybody suggest me how to convert it?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…