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

Standort Hannover

newcubator GmbH
Bödekerstraße 22
30161 Hannover

Standort Dortmund

newcubator GmbH
Westenhellweg 85-89
44137 Dortmund