Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ES7 spread properties to make shallow clones of objects. #44

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Nov 27, 2015

  1. Use ES7 spread properties to make shallow clones of objects.

    I don't know if you have ES7 object rest/spread properties enabled, but, if you do, here's an easy ES7 idiom for creating a new object with all the same own properties of a given object.
    
    Specification: https://github.com/sebmarkbage/ecmascript-rest-spread
    benjamn committed Nov 27, 2015
    Configuration menu
    Copy the full SHA
    1aa0f50 View commit details
    Browse the repository at this point in the history