Načítám...

TypeScript

  • TypeScript #2

    Dnešní code-review... 🙂🔫

    candidateQuestion: (() => {
          const source = offer?.candidateQuestion
          const cs = source?.cs ?? ''
          const en = source?.en ?? ''
    
          if (!cs && !en)
            return { cs: '', en: '' }
    
          return {
            cs,
            en,
          }
  • TypeScript #1

    Is it friday yet?

    function isItFridayYet(today: string): boolean {
        const theDay = today.toLowerCase().trim();
    
        if (theDay === "monday") {
            return false;
        } else if (theDay === "tuesday") {
            return false;
        } else if (theDay === "wednesday") {
            return false;
        } else if (theDay === "thursday") {
            return false;
        } else if (theDay === "friday") {
  • Žádné další prasokódy