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 / / 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);


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

Latest version published 1 year ago

Package Health Score

53 / 100
Full package analysis

Popular realistic-structured-clone functions