mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
test fixes
This commit is contained in:
parent
ecbd9b2da8
commit
2d614d3a2d
@ -33,11 +33,11 @@ const getNumbers = (state: SimpleState = simpleState, type: string): number[] =>
|
||||
return state.numbers.filter(element => {
|
||||
const division = element % 2;
|
||||
|
||||
if (division === 0 && type === ODD_NUMBERS) {
|
||||
if (division === 0 && type === EVEN_NUMBERS) {
|
||||
return element;
|
||||
}
|
||||
|
||||
if (division !== 0 && type === EVEN_NUMBERS) {
|
||||
if (division !== 0 && type === ODD_NUMBERS) {
|
||||
return element;
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user