Skip to content

Instantly share code, notes, and snippets.

@mbparvezme
Last active March 4, 2024 08:49
Show Gist options
  • Save mbparvezme/4c8270389f8da89fce38a3e73e409f74 to your computer and use it in GitHub Desktop.
Save mbparvezme/4c8270389f8da89fce38a3e73e409f74 to your computer and use it in GitHub Desktop.
// Marge and overright two objects
export let data: DataType = {}
let D: DataType = {
name : "M B Parvez: Full-stack specialist - UI/UX developer",
title : ""
}
D = { ...D, ...data }
// Get current URL from browser
var e = window.location.href.split(/[?#]/)[0];
// Date.now().toString(36) returns a 8 chars string in a sequence of time
var str = (Date.now().toString(36) + '_' + Math.random().toString(36).substr(2, 4)) + Math.random().toString(36).substr(2, 8);
console.log(str);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment