6 lines
153 B
TypeScript
6 lines
153 B
TypeScript
export default function parseCommand(command: string) {
|
|
const [action, target] = command.toLocaleLowerCase().split(" ");
|
|
|
|
return { action, target };
|
|
}
|