mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 02:43:48 +02:00
Add TrackDescriptor concept
This commit is contained in:
+4
-4
@@ -959,12 +959,12 @@ export const validateRectangle = (rect: Rectangle, propertyPath: string) => {
|
||||
}
|
||||
};
|
||||
|
||||
export const asc = (value: number | null) => {
|
||||
return value ?? Infinity; // nulls last
|
||||
export const asc = (value: number | null | undefined) => {
|
||||
return value ?? Infinity; // nulls and undefined last
|
||||
};
|
||||
|
||||
export const desc = (value: number | null) => {
|
||||
return -(value ?? -Infinity); // nulls last
|
||||
export const desc = (value: number | null | undefined) => {
|
||||
return -(value ?? -Infinity); // nulls and undefined last
|
||||
};
|
||||
|
||||
export const prefer = (value: boolean) => {
|
||||
|
||||
Reference in New Issue
Block a user