phrase.replace(/(?<old>.)\|(?<new>.)/g, '<a href="http://localhost:4000/search?q=$<new>">$<new></a>')
let procent = {
email : false,
phone : false,
mail : false
}
function notwork(property){
property = !property
}
function work(object, propertyName){
object[propertyName] = ! object[propertyName]
}
let procent = {
email : false,
phone : false,
mail : false
}
notwork(procent.email)
console.log(procent.email)
//false
work(procent,"email")
console.log(procent.email)
//true