Remove some dead code (#6611)
We could remove a lot more than this, this is just a start. There are various tools to help with this, knip is a good one
This commit is contained in:
@ -1,8 +0,0 @@
|
||||
export const splitClassesAndStrings = <T>(
|
||||
classesAndStrings: (string | T)[],
|
||||
): [T[], string[]] => {
|
||||
return [
|
||||
classesAndStrings.filter((cls): cls is T => typeof cls !== 'string'),
|
||||
classesAndStrings.filter((str): str is string => typeof str === 'string'),
|
||||
];
|
||||
};
|
||||
Reference in New Issue
Block a user