react-code-dataset / next.js /turbopack /crates /turbopack-ecmascript /tests /tree-shaker /analyzer /complex /input.js
Download next.js/turbopack/crates/turbopack-ecmascript/tests/tree-shaker/analyzer/complex/input.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 380 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/turbopack/crates/turbopack-ecmascript/tests/tree-shaker/analyzer/complex/input.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/turbopack/crates/turbopack-ecmascript/tests/tree-shaker/analyzer/complex/input.js
-
curl -L -o input.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/turbopack/crates/turbopack-ecmascript/tests/tree-shaker/analyzer/complex/input.js
380 Bytes
| let dog = "dog"; | |
| dog += "!"; | |
| console.log(dog); | |
| function getDog() { | |
| return dog; | |
| } | |
| dog += "!"; | |
| console.log(dog); | |
| function setDog(newDog) { | |
| dog = newDog; | |
| } | |
| dog += "!"; | |
| console.log(dog); | |
| export const dogRef = { | |
| initial: dog, | |
| get: getDog, | |
| set: setDog, | |
| }; | |
| export let cat = "cat"; | |
| export const initialCat = cat; | |
| export function getChimera() { | |
| return cat + dog; | |
| } | |