14.10.2020 |

Was macht dieser Typescript Code?

const foo = (a: boolean, b: boolean) => ["neither", "first", "second", "both"][a + b * 2];

console.log(foo(true, true));
console.log(foo(true, false));
console.log(foo(false, true));
console.log(foo(false, false));
Zur Übersicht

Mehr vom DevSquad...

Kerstin Paduch

UX 101

Adrian Görisch

AWS lambda Layers