Skip to content

Instantly share code, notes, and snippets.

import json1 from 'ot-json1'
const integerRegEx = /^\d+$/
function isInteger (v) {
return Boolean(v.match(integerRegEx))
}
export function patchAtomToOpAtom (patchOp) {
const { path, op, value } = patchOp
const pathArray = path.split('/').slice(1).map(pathItem => {