Why Object.assign does not clone __proto__?

Why Object.assign does not clone __proto__? Here is the code https://jsfiddle.net/CitizenOne/ftp4nbzq/21/
Need to clone __proto__
June 10th 19 at 15:50
2 answers
June 10th 19 at 15:52
Solution
because `__proto__` or own any of the enumerated property
Damn! Knew it! Although doubted. - maxie.Mo commented on June 10th 19 at 15:55
June 10th 19 at 15:54
Solution
Use Object.create
https://jsfiddle.net/y35b8xt8/

Object.assign copies only its own enumerable properties.

Find more questions by tags JavaScript