Commit to Deno project.
This commit is contained in:
5
parseCommand.ts
Normal file
5
parseCommand.ts
Normal file
@ -0,0 +1,5 @@
|
||||
export default function parseCommand(command: string) {
|
||||
const [action, target] = command.toLocaleLowerCase().split(" ");
|
||||
|
||||
return { action, target };
|
||||
}
|
Reference in New Issue
Block a user