Starcounter-Jack / JSON-Patch

Lean and mean Javascript implementation of the JSON-Patch standard (RFC 6902). Update JSON documents using delta patches.
MIT License
1.79k stars 215 forks source link

ReadonlyArray<T> for applyPatch()/validate() #225

Closed ulrichb closed 4 years ago

ulrichb commented 5 years ago

Allow callers providing a ReadonlyArray<Operation> input for applyPatch() and validate().

This is okay because both operations don't modify the array itself (only items in case of GetOperation<T>).