JSFiddle - React, Tailwind, and code Playground

by Julien Etienne

JavaScript

const c = new WeakMap();
const todo = (r, com) => {
  text: r,
  com
}


for(var i = 0; i < 10;i++){

const text = {'wefwefwegwe':0}
const rand = Math.random();   
const isComplete = Math.round(rand);
 c.set(text,isComplete)

}




console.log(c)