Science
Both methods in this module return objects rather than strings. For example, you can use
{{$science.chemicalElementName}}
to pick out the specific property you need.chemicalElement
faker.science.chemicalElement()
method has been refined into three more precise variables:{{$science.chemicalElementSymbol}}
: Generates an chemicalElement Symbol.{{$science.chemicalElementName}}
: Generates an chemicalElement Name.{{$science.chemicalElementAtomicNumber}}
: Generates an chemicalElement AtomicNumber.
unit
faker.science.unit()
method has been refined into two more precise variables:{{$science.unitName}}
: Generates an unit name.{{$science.unitSymbol}}
: Generates an unit Symbol.
Modified atΒ 2024-09-02 05:25:17