Files
klz-cables.com/.pnpm-store/v10/files/ac/eb4c69f9f62c7af9ec2ad0813dd9324a5a9cdb5316465c26b459fae4761972664b55ca97f69830396894d08453141f7f7f30bbdd45fb624bd9481fcd527764
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

15 lines
481 B
Plaintext

import "../types/number.js";
import { PartitionNumberRangePattern } from "./PartitionNumberRangePattern.js";
/**
* https://tc39.es/ecma402/#sec-formatnumericrangetoparts
*/
export function FormatNumericRangeToParts(numberFormat, x, y, { getInternalSlots }) {
const parts = PartitionNumberRangePattern(numberFormat, x, y, { getInternalSlots });
return parts.map((part, index) => ({
type: part.type,
value: part.value,
source: part.source,
result: index.toString()
}));
}