react-code-dataset / tabler-react /example /src /ComponentDemo /react-element-to-jsx-string /formatter /spacer.js.flow
Download tabler-react/example/src/ComponentDemo/react-element-to-jsx-string/formatter/spacer.js.flow from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 174 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/tabler-react/example/src/ComponentDemo/react-element-to-jsx-string/formatter/spacer.js.flow
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/tabler-react/example/src/ComponentDemo/react-element-to-jsx-string/formatter/spacer.js.flow
-
curl -L -o spacer.js.flow https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/tabler-react/example/src/ComponentDemo/react-element-to-jsx-string/formatter/spacer.js.flow
174 Bytes
| /* @flow */ | |
| export default (times: number, tabStop: number): string => { | |
| if (times === 0) { | |
| return ''; | |
| } | |
| return new Array(times * tabStop).fill(' ').join(''); | |
| }; | |