Skip to content

Instantly share code, notes, and snippets.

View tsirlucas's full-sized avatar
🏠
Working from home

Lucas Correia tsirlucas

🏠
Working from home
View GitHub Profile
@developit
developit / *object-diff-patch.md
Last active August 20, 2021 15:03
Compute an object diff, then apply it as a patch to an existing object. https://npm.im/object-diff-patch

object-diff-patch

// on the main thread
import { apply } from 'object-diff-patch/apply';

import createWorker from 'workerize-loader!./worker.js';
const worker = createWorker();

const CACHE = new Map();