Takes an object 'state' and fills in buffer[i] at 'path' buffer_paths[i]
where buffer_paths[i] is a list indicating where in the object buffer[i] should
be placed
Example: state = {a: 1, b: {}, c: [0, null]}
buffers = [array1, array2]
buffer_paths = [['b', 'data'], ['c', 1]]
Will lead to {a: 1, b: {data: array1}, c: [0, array2]}
Takes an object 'state' and fills in buffer[i] at 'path' buffer_paths[i] where buffer_paths[i] is a list indicating where in the object buffer[i] should be placed Example: state = {a: 1, b: {}, c: [0, null]} buffers = [array1, array2] buffer_paths = [['b', 'data'], ['c', 1]] Will lead to {a: 1, b: {data: array1}, c: [0, array2]}