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
// for文内のcontinueはNG | |
const abc = (arg: (string | number)[]) => { | |
for (let i=0;i<arg.length;i++) { | |
if (typeof arg[i] === 'string') continue; | |
const abc: number = arg[i]; | |
} | |
} | |
// if文のearly returnはOK | |
const abc2 = (arg: (string | number)[]) => { |
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
const stateA = { | |
idA:{ | |
xx:1 | |
} | |
} | |
const stateB = { | |
idA:{ | |
yy:1 | |
} | |
} |
NewerOlder