Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let object = {
- user_name: "sample",
- user_email: "sample@gmail.com"
- }
- for (let key in dict) {
- var res = key.match(/email/g)[0];
- console.log(res)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement