| 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]) | |
Xet Storage Details
- Size:
- 472 Bytes
- Xet hash:
- 4d9bc90c99cf580e135d61f7329b359027199b0a5bd9dbb9db234b95a9350a5e
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.