I\'m unclear as to how the reduce function is able to create an object from an array like this example especially the line:
p[c[0]] = c[1];