Код: Выделить всё
function func(...) { ... }
func.a = 1
let func2 = deepCopy(func) // need to be implemented
func.a = 2
func2.a // shall still be 1
func2("abc") // shall return the same result as func("abc")
Подробнее здесь: https://stackoverflow.com/questions/795 ... javascript
Мобильная версия