INNER CODE UNIT · TypeScript

maybeNum

scribbletune/scribbletune · src/cli.ts:233

      const maybeNum = argv[i + 2];
      if (!styleOrNum || styleOrNum.startsWith('--')) {
        options.sizzle = true;
        i += 1;
        continue;
      }
      if (/^\d+$/.test(styleOrNum)) {
        options.sizzle = true;
        options.sizzleReps = Number(styleOrNum);
        i += 2;
        continue;
      }
      options.sizzle = styleOrNum as SizzleStyle;
      if (maybeNum && /^\d+$/.test(maybeNum)) {
        options.sizzleReps = Number(maybeNum);
        i += 3;
      } else {
        i += 2;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…