require(["esri/core/quantity"], (quantity) => { /* code goes here */ });
import * as quantity from "@arcgis/core/core/quantity.js";
esri/core/quantity
Quantity type used to represent measurements across the JS API.
Type Definitions
-
- Properties
-
value Number
Scalar value representing a length.
unit LengthUnitAny unit which represents length.
type StringUnit type.
The value is always "length".