Implement video feed feature with components, hooks, and utility functions
This commit is contained in:
6
src/utils/utils.ts
Normal file
6
src/utils/utils.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export const formatNumberPlate = (plate: string) => {
|
||||
const splittedPlate = plate?.split("");
|
||||
splittedPlate?.splice(4, 0, " ");
|
||||
const formattedPlate = splittedPlate?.join("");
|
||||
return formattedPlate;
|
||||
};
|
||||
Reference in New Issue
Block a user