[go: up one dir, main page]

Skip to content

bertolo1988/clone-object-study

Repository files navigation

clone-object-study

The source code of a study about cloning in Javascript.

Requirements

  • Node.js version v18.10.0

Lits available clone methods

npm run methods

Run all tests for all clone methods (not recommended)

npm run test

Run all tests for a single clone method

You can select a clone method by defining the METHOD environment variable.

METHOD=cloneLib NODE_ENV=test npx jest

Alternatively you can set it using dotenv.

echo METHOD="cloneLib" > .env
npm run test

Run a test suite for a single clone method

echo METHOD="cloneLib" > .env
npm run test test/deep-clone/arrays.spec.js

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published