Download node_modules/fast-check/lib/arbitrary/fullUnicodeString.js from Really-amin/Datasourceforcryptocurrency: direct link, hf CLI and curl.
- Browser
- Download file 982 Bytes
-
https://huggingface.co/spaces/Really-amin/Datasourceforcryptocurrency/resolve/250b128700538234afd94de5d02f4e054f24823e/node_modules/fast-check/lib/arbitrary/fullUnicodeString.js
- Command line
-
hf download hf://spaces/Really-amin/Datasourceforcryptocurrency@250b128700538234afd94de5d02f4e054f24823e/node_modules/fast-check/lib/arbitrary/fullUnicodeString.js
-
curl -L -o fullUnicodeString.js https://huggingface.co/spaces/Really-amin/Datasourceforcryptocurrency/resolve/250b128700538234afd94de5d02f4e054f24823e/node_modules/fast-check/lib/arbitrary/fullUnicodeString.js
982 Bytes
| ; | |
| Object.defineProperty(exports, "__esModule", { value: true }); | |
| exports.fullUnicodeString = fullUnicodeString; | |
| const array_1 = require("./array"); | |
| const fullUnicode_1 = require("./fullUnicode"); | |
| const CodePointsToString_1 = require("./_internals/mappers/CodePointsToString"); | |
| const SlicesForStringBuilder_1 = require("./_internals/helpers/SlicesForStringBuilder"); | |
| const safeObjectAssign = Object.assign; | |
| function fullUnicodeString(constraints = {}) { | |
| const charArbitrary = (0, fullUnicode_1.fullUnicode)(); | |
| const experimentalCustomSlices = (0, SlicesForStringBuilder_1.createSlicesForStringLegacy)(charArbitrary, CodePointsToString_1.codePointsToStringUnmapper); | |
| const enrichedConstraints = safeObjectAssign(safeObjectAssign({}, constraints), { | |
| experimentalCustomSlices, | |
| }); | |
| return (0, array_1.array)(charArbitrary, enrichedConstraints).map(CodePointsToString_1.codePointsToStringMapper, CodePointsToString_1.codePointsToStringUnmapper); | |
| } | |