clone
Creates a cloned Arith API with isolated configuration state.
API Reference
Signature
Parameters
Returns
Returns a cloned Arith API. Values created by the clone use that clone's configuration.
Throws
- Throws if
objectis provided but is not a valid config object. - Throws if any supplied config field is invalid.
Agent Contract
Agent Notes
- Prefer
Arith.clone()over sharedArith.config()in reusable libraries. - Do not import or generate a top-level
clone(...); useArith.clone(...). - Import with
import { Arith } from "@teakit/arith"; default imports are unsupported. - Static helpers are called as
Arith.method(...)and do not require an instance receiver. - Do not generate
BigNumber,Decimal,isBigNumber, orisDecimalcompatibility APIs. - Use string inputs for exact decimal values when a static helper accepts numeric values.