Spaces:
Paused
Paused
Download node_modules/array-bounds/test.js from Leon4gr45/UserSyncFrontend: direct link, hf CLI and curl.
- Browser
- Download file 472 Bytes
-
https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/array-bounds/test.js
- Command line
-
hf download hf://spaces/Leon4gr45/UserSyncFrontend/node_modules/array-bounds/test.js
-
curl -L -o test.js https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/array-bounds/test.js
472 Bytes
| const bounds = require('./') | |
| const assert = require('assert') | |
| let a = [-Infinity, -1, 0, 1, Infinity] | |
| assert.deepEqual(bounds(a), [-Infinity, Infinity]) | |
| let b = [0, .5, 1] | |
| assert.deepEqual(bounds(b), [0, 1]) | |
| let c = [0, 50, 100] | |
| assert.deepEqual(bounds(c), [0, 100]) | |
| let d = [0, 0, .1, .2, 1, 2] | |
| assert.deepEqual(bounds(d, 2), [0, 0, 1, 2]) | |
| let e = [-1, -2, -3, 0, 0, 0, 3, 2, 1] | |
| assert.deepEqual(bounds(e, 3), [-1, -2, -3, 3, 2, 1]) | |