Answers for "use uuid in model in node js"

2

uuid v4 react

npm install uuid
import { v4 as uuidv4 } from 'uuid';
Posted by: Guest on January-08-2021
1

uuid javascript

uuidv4() {
    return 'xxxxxxxxxxxxxxxxxxxxxxxxxxxx'.replace(/[xy]/g, (c) => {
      var r = (Math.random() * 16) | 0,
        v = c == 'x' ? r : (r & 0x3) | 0x8;
      return v.toString(16);
    });
  }
Posted by: Guest on January-07-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language