UNPKG

@formatjs/ecma402-abstract

Version:

A collection of implementation for ECMAScript abstract operations

14 lines (13 loc) 390 B
import "../types/number.js"; /** * https://tc39.es/ecma402/#sec-formatapproximately */ export function FormatApproximately(internalSlots, result) { const symbols = internalSlots.dataLocaleData.numbers.symbols[internalSlots.numberingSystem]; const approximatelySign = symbols.approximatelySign; result.push({ type: "approximatelySign", value: approximatelySign }); return result; }