JSFiddle - React, Tailwind, and code Playground

by Laxmikant Dange

JavaScript

function checksum(str) {
  str.replace(/[A-Za-z0-9]/g, function(c) {
    if (c.charCodeAt(0) >= 65) {
      c = c.charCodeAt(0) - 55;
    } else {
      c = "0" + c
    }
    return c + ",";
  })
}