Answers for "how to make fake binary"

0

how to make fake binary

function fakeBin(x) {
  return x.replace(/\d/g, d => d < 5 ? 0 : 1);
}
// for code wars lol
Posted by: Guest on April-05-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language