doSomething(setting: string) {
let shouldGoForward: boolean = false;
let price: number = Number(setting);
if (price || price === 0) {
shouldGoForward = true;
}
Maybe you can imagine what comes downstream based on the shouldGoForward flag.
No comments:
Post a Comment