Download node_modules/fast-check/lib/esm/arbitrary/fullUnicodeString.js from Really-amin/Datasourceforcryptocurrency: direct link, hf CLI and curl.
- Browser
- Download file 779 Bytes
-
https://huggingface.co/spaces/Really-amin/Datasourceforcryptocurrency/resolve/250b128700538234afd94de5d02f4e054f24823e/node_modules/fast-check/lib/esm/arbitrary/fullUnicodeString.js
- Command line
-
hf download hf://spaces/Really-amin/Datasourceforcryptocurrency@250b128700538234afd94de5d02f4e054f24823e/node_modules/fast-check/lib/esm/arbitrary/fullUnicodeString.js
-
curl -L -o fullUnicodeString.js https://huggingface.co/spaces/Really-amin/Datasourceforcryptocurrency/resolve/250b128700538234afd94de5d02f4e054f24823e/node_modules/fast-check/lib/esm/arbitrary/fullUnicodeString.js
779 Bytes
| import { array } from './array.js'; | |
| import { fullUnicode } from './fullUnicode.js'; | |
| import { codePointsToStringMapper, codePointsToStringUnmapper } from './_internals/mappers/CodePointsToString.js'; | |
| import { createSlicesForStringLegacy } from './_internals/helpers/SlicesForStringBuilder.js'; | |
| const safeObjectAssign = Object.assign; | |
| export function fullUnicodeString(constraints = {}) { | |
| const charArbitrary = fullUnicode(); | |
| const experimentalCustomSlices = createSlicesForStringLegacy(charArbitrary, codePointsToStringUnmapper); | |
| const enrichedConstraints = safeObjectAssign(safeObjectAssign({}, constraints), { | |
| experimentalCustomSlices, | |
| }); | |
| return array(charArbitrary, enrichedConstraints).map(codePointsToStringMapper, codePointsToStringUnmapper); | |
| } | |