score:1

Accepted answer
case "update":
   const val = Number(wish_value);

   if (isNaN(val)) {
      return { 
          count: "No number"
      };
   }

   return {
      count: Number(val)
   };

Related Query

More Query from same tag