hooked-on-web-components/id.js

6 lines
82 B
JavaScript

let nextId = 1;
export default function getId(name){
return name + nextId++;
}