7 lines
265 B
TypeScript
7 lines
265 B
TypeScript
|
import { ReleaseData } from './../types';
|
||
|
import { compareReleasesFn } from './compareReleasesFn';
|
||
|
|
||
|
export const getSortedReleases = (releases: ReleaseData[], moreReleases: ReleaseData[] = []) => {
|
||
|
return releases.concat(moreReleases).sort(compareReleasesFn);
|
||
|
};
|