Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
16 lines
562 B
Text
16 lines
562 B
Text
import { PartitionNumberRangePattern } from './PartitionNumberRangePattern';
|
|
/**
|
|
* https://tc39.es/ecma402/#sec-formatnumericrangetoparts
|
|
*/
|
|
export function FormatNumericRangeToParts(numberFormat, x, y, _a) {
|
|
var getInternalSlots = _a.getInternalSlots;
|
|
var parts = PartitionNumberRangePattern(numberFormat, x, y, {
|
|
getInternalSlots: getInternalSlots,
|
|
});
|
|
return parts.map(function (part, index) { return ({
|
|
type: part.type,
|
|
value: part.value,
|
|
source: part.source,
|
|
result: index.toString(),
|
|
}); });
|
|
}
|