Run prettier through everything.

This commit is contained in:
muzam1l
2022-08-17 11:50:49 +05:30
parent 9923dd9390
commit 6418094b0f
110 changed files with 5458 additions and 5951 deletions

View File

@@ -1,8 +1,8 @@
const truncate = (str: string, max: number = 8) => {
const array = str.trim().split('');
const ellipsis = array.length > max ? '...' : '';
const array = str.trim().split('')
const ellipsis = array.length > max ? '...' : ''
return array.slice(0, max).join('') + ellipsis;
};
return array.slice(0, max).join('') + ellipsis
}
export default truncate
export default truncate