Download node_modules/fast-check/lib/esm/arbitrary/float64Array.js from Really-amin/Datasourceforcryptocurrency: direct link, hf CLI and curl.
- Browser
- Download file 483 Bytes
-
https://huggingface.co/spaces/Really-amin/Datasourceforcryptocurrency/resolve/250b128700538234afd94de5d02f4e054f24823e/node_modules/fast-check/lib/esm/arbitrary/float64Array.js
- Command line
-
hf download hf://spaces/Really-amin/Datasourceforcryptocurrency@250b128700538234afd94de5d02f4e054f24823e/node_modules/fast-check/lib/esm/arbitrary/float64Array.js
-
curl -L -o float64Array.js https://huggingface.co/spaces/Really-amin/Datasourceforcryptocurrency/resolve/250b128700538234afd94de5d02f4e054f24823e/node_modules/fast-check/lib/esm/arbitrary/float64Array.js
483 Bytes
| import { double } from './double.js'; | |
| import { array } from './array.js'; | |
| import { Float64Array } from '../utils/globals.js'; | |
| function toTypedMapper(data) { | |
| return Float64Array.from(data); | |
| } | |
| function fromTypedUnmapper(value) { | |
| if (!(value instanceof Float64Array)) | |
| throw new Error('Unexpected type'); | |
| return [...value]; | |
| } | |
| export function float64Array(constraints = {}) { | |
| return array(double(constraints), constraints).map(toTypedMapper, fromTypedUnmapper); | |
| } | |