const htmlConverter = (state?: string[] | any) => { const todos: string[] = []; for (let i = 0; i < state?.length; i++) { todos.push( `` ); } return ` ${todos.toString().replace(/(,)/gi, '')} `; }; export default htmlConverter;