Feld · Binary
Feld · Binary · string.binary. Generatormethode · Beispiel
string.binary
Generatoreinstellungen
Erzeuge Daten, um Ergebnisse zu sehen.
Parameter & Beispiel
Returns a binary string.
string.binary(options?: { length?, prefix? })- options
- The optional options object.
- options.length
- The length of the string (excluding the prefix) to generate either as a fixed length or as a length range. Defaults to 1.
- options.prefix
- Prefix for the generated number. Defaults to '0b'.
Beispiel
"0b1"Verwende synthetische Daten in der Testumgebung.