Spaces:
Runtime error
Runtime error
Download src/lib/utils/sum.ts from BetterAPI/BetterChat: direct link, hf CLI and curl.
- Browser
- Download file 89 Bytes
-
https://huggingface.co/spaces/BetterAPI/BetterChat/resolve/2dc7d8d3e6f756f3fcf4e68582f84d7e7efab73c/src/lib/utils/sum.ts
- Command line
-
hf download hf://spaces/BetterAPI/BetterChat@2dc7d8d3e6f756f3fcf4e68582f84d7e7efab73c/src/lib/utils/sum.ts
-
curl -L -o sum.ts https://huggingface.co/spaces/BetterAPI/BetterChat/resolve/2dc7d8d3e6f756f3fcf4e68582f84d7e7efab73c/src/lib/utils/sum.ts
89 Bytes
| export function sum(nums: number[]): number { | |
| return nums.reduce((a, b) => a + b, 0); | |
| } | |