Skip to content

Support applying array properties

Compare
Choose a tag to compare
@alshakero alshakero released this 29 Aug 12:09
· 191 commits to master since this release

Earlier, setting array props wasn't possible:

var obj = [];

jsonpatch.applyPatch(obj, [{op: 'add', path: '/prop', value: 'arrayProp'}])

console.log(obj.prop); // --> undefined

Now it is.