Spaces:
Paused
Paused
Download node_modules/@huggingface/hub/src/utils/sum.ts from Leon4gr45/nova-header-nav: direct link, hf CLI and curl.
- Browser
- Download file 123 Bytes
-
https://huggingface.co/spaces/Leon4gr45/nova-header-nav/resolve/main/node_modules/%40huggingface/hub/src/utils/sum.ts
- Command line
-
hf download hf://spaces/Leon4gr45/nova-header-nav/node_modules/@huggingface/hub/src/utils/sum.ts
-
curl -L -o sum.ts https://huggingface.co/spaces/Leon4gr45/nova-header-nav/resolve/main/node_modules/%40huggingface/hub/src/utils/sum.ts
123 Bytes
| /** | |
| * Sum of elements in array | |
| */ | |
| export function sum(arr: number[]): number { | |
| return arr.reduce((a, b) => a + b, 0); | |
| } | |