const indexX = [
'2013/1/24',
'2013/1/25',
'2013/1/26',
'2013/1/27',
'2014/1/4',
'2014/1/5',
'2014/1/6',
'2014/1/7',
'2014/1/8',
'2014/1/9',
'2015/1/1',
'2015/1/2',
'2015/1/3',
'2016/1/1',
'2016/1/2',
'2016/1/3',
'2016/1/4',
'2016/1/5',
'2016/1/6',
];
const getFirstByYear = (arr: string[]) => {
return [];
};
getFirstByYear(indexX);
const specs = [
{ id: 0, tags: ['a', 'b', 'c', 'd', 'e'] },
{ id: 1, tags: ['a', 'b', 'e'] },
{ id: 2, tags: ['f'] },
{ id: 3, tags: ['a', 'c', 'e'] },
];
const allTags = ['a', 'b', 'c', 'd', 'e', 'f'];
const st1 = ['a'];
const st2 = ['c', 'a', 'e'];
const st3 = ['a', 'b'];
const getFilteredSpecs = (specs: { id: number; tags: string[] }[], selectedTags: string[]) => {
return [];
};
getFilteredSpecs(specs, st1);
getFilteredSpecs(specs, st2);
getFilteredSpecs(specs, st3);