object-clone-prototype
v1.1.5
Published
extend prototype object
Readme
��#� �o�b�j�e�c�t�-�c�l�o�n�e�-�p�r�o�t�o�t�y�p�e�
�
�_�_�_�_�_�
�
�
�
�#� �I�n�s�t�a�l�l�
�
����s�h�e�l�l�
�
�>� �n�p�m� �i� �o�b�j�e�c�t�-�c�l�o�n�e�-�p�r�o�t�o�t�y�p�e�
�
����
�
�
�
�#� �U�s�e�
�
����j�s�
�
�c�o�n�s�t� �c�l�o�n�e� �=� �r�e�q�u�i�r�e�(�'�o�b�j�e�c�t�-�c�l�o�n�e�-�p�r�o�t�o�t�y�p�e�'�)�
�
�
�
�c�o�n�s�t� �o�b�j� �=� �{�k�e�y�:� �'�v�a�l�u�e�'�}� �/�/� �{�k�e�y�:� �{�k�e�y�:� �[� �{�k�e�y�:� �.�.�.� �]�}�}�
�
�
�
�c�l�o�n�e�(�o�b�j�)� �/�/� �c�l�o�n�e�(�o�b�j�,� �o�b�j�2�,� �o�b�j�3�m� �.�.�.� �o�b�j�N�)�
�
�
�
�O�b�j�e�c�t�.�d�e�f�i�n�e�P�r�o�p�e�r�t�y�(�o�b�j�,� �'�n�e�w�'�,� �{�
�
� � � � � � � � �v�a�l�u�e�:� �'�h�e�l�l�o�'�,�
�
� � � � � � � � �w�r�i�t�a�b�l�e�:� �t�r�u�e�,�
�
� � � � � � � � �e�n�u�m�e�r�a�b�l�e�:� �f�a�l�s�e�
�
�}�)�
�
�
�
�c�o�n�s�t� �n�e�w�_�o�b�j� �=� �o�b�j�.�c�l�o�n�e�(�)�
�
�/�/�o�r�
�
�c�o�n�s�t� �n�e�w�_�o�b�j� �=� �c�l�o�n�e�(�o�b�j�)� �/�/� �o�b�j�.�c�l�o�n�e�(�)� �=�=�=� �c�l�o�n�e�(�o�b�j�)� �b�u�t� �r�e�t�u�r�n� �1� �v�a�l�u�e� �a�r�g�u�m�e�n�t�s�
�
�
�
�c�o�n�s�o�l�e�.�l�o�g�(�n�e�w�_�o�b�j�,� �n�e�w�_�o�b�j�.�n�e�w�)� �/�/� �{�k�e�y�:� �'�v�a�l�u�e�}�,� �'�h�e�l�l�o�'�
�
�
�
�/�/�o�r�
�
�
�
�c�o�n�s�t� �n�e�w�_�o�b�j� �=� �o�b�j�.�c�l�o�n�e�(�f�a�l�s�e�)� �/�/� �i�m�m�u�t�a�b�l�e� �a�n�d� �i�g�n�o�r�e� �d�e�s�c�r�i�p�t�o�r�s�
�
�/�/�o�r�
�
�c�o�n�s�t� �n�e�w�_�o�b�j� �=� �c�l�o�n�e�.�b�i�n�d�(�f�a�l�s�e�)�(�o�b�j�)�
�
�
�
�c�o�n�s�o�l�e�.�l�o�g�(�n�e�w�_�o�b�j�,� �n�e�w�_�o�b�j�.�n�e�w�)� �/�/� �{�k�e�y�:� �'�v�a�l�u�e�}�,� �u�n�d�e�f�i�n�e�d�
�
����
