(command: object)
| 213 | } |
| 214 | |
| 215 | function getCommandPath(command: object): PathType { |
| 216 | if (command["path"] == null) { |
| 217 | return []; |
| 218 | } |
| 219 | return command["path"]; |
| 220 | } |
| 221 | |
| 222 | function applyCommand(data: any, command: any): any { |
| 223 | if (command == null) { |