This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { isString, isObject } from 'lodash'; | |
| function updateAnswer(updateCommand, typeKeys) { | |
| if (!updateCommand || !typeKeys) { | |
| return; | |
| } | |
| // The first iteration of the application knew `typeKeys` as a string. | |
| // As the scope evolved, functionality extended to build up an object of `typeKeys` to support |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { isString, isObject } from 'lodash'; | |
| function updateAnswer(updateCommand, typeKeys) { | |
| // If either of `updateCommand` or `typeKeys` | |
| // is null or defined, then we can stop here and just return | |
| if (!updateCommand || !typeKeys) { | |
| return; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { isString, isObject } from 'lodash'; | |
| function updateAnswer(updateCommand, typeKeys) { | |
| if (!updateCommand || !typeKeys) { | |
| return; | |
| } | |
| if (isString(typeKeys)) { | |
| return { |