hooked-on-web-components/id.js

6 lines
82 B
JavaScript
Raw Permalink Normal View History

2019-03-26 02:50:23 +00:00
let nextId = 1;
export default function getId(name){
return name + nextId++;
}