How to use realistic-structured-clone - 1 common examples

To help you get started, we’ve selected a few realistic-structured-clone examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wq / wq.app / packages / jest-env-jsdom-idb / src / __tests__ / env.js View on Github external
test('Can clone Blob', () => {
    const blob1 = new Blob([1, 2, 3], { type: 'text/plain' });
    const blob2 = structuredClone(blob1);
    expect(blob1).toEqual(blob2);
});

realistic-structured-clone

A pure JS implementation of the structured clone algorithm (or at least something pretty close to that)

Apache-2.0
Latest version published 3 years ago

Package Health Score

50 / 100
Full package analysis

Popular realistic-structured-clone functions