Code imports rearranged and updated for better consistency. Missing semicolons were added in multiple files to improve code readability and standards compliance. The usage of whitespace and indentation was also standardized across multiple files to improve overall code clarity.
12 lines
286 B
TypeScript
12 lines
286 B
TypeScript
const IntCodeService = {
|
|
generate: () => {
|
|
const a = Math.floor(Math.random() * Date.now());
|
|
const b = a.toString().replace(/0/g, "");
|
|
const c = b.split("");
|
|
const code = c.join("").slice(0, 6).toString();
|
|
return Number.parseInt(code);
|
|
},
|
|
};
|
|
|
|
export default IntCodeService;
|