silverwolf-x's picture
download
raw
538 Bytes
import type { Segment } from '../../shared/lib/app-router-types'
export const matchSegment = (
existingSegment: Segment,
segment: Segment
): boolean => {
// segment is either Array or string
if (typeof existingSegment === 'string') {
if (typeof segment === 'string') {
// Common case: segment is just a string
return existingSegment === segment
}
return false
}
if (typeof segment === 'string') {
return false
}
return existingSegment[0] === segment[0] && existingSegment[1] === segment[1]
}

Xet Storage Details

Size:
538 Bytes
·
Xet hash:
a9d9f0525a366bba0a8e15df364a2ee4ba541f5ebd12d2db065511564abf0d00

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.