// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.importtype{Range}from"./types.ts";import{ formatComparator }from"./_format_comparator.ts"; /** * Formats the range into a string * @example >=0.0.0 || <1.0.0 * @param range The range to format * @returns A string representation of the range */exportfunctionformatRange(range:Range):string{return range.map((c)=> c.map((c)=>formatComparator(c)).join(" ")).join("||");}