remove last word
This commit is contained in:
1 parent
3a0426ae6d
commit
ce775e03ab
7 files changed
+24
-20
No files matched your search
@@ -91,3 +91,8 @@ export function copyProjectLink(projectId) {
|
||||
`https://itguild.info/tracker/project/${projectId}`
|
||||
);
|
||||
}
|
||||
|
||||
export function removeLast(string) {
|
||||
let lastIndex = string.lastIndexOf(" ");
|
||||
return string.substring(0, lastIndex);
|
||||
}
|
||||
Reference in new issue
Block a user