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

extract same refs of object #46

Open
harvey-woo opened this issue Apr 24, 2019 · 0 comments
Open

extract same refs of object #46

harvey-woo opened this issue Apr 24, 2019 · 0 comments

Comments

@harvey-woo
Copy link

harvey-woo commented Apr 24, 2019

It's very nice if support extracting same refs of object, for example

var obj = {}
serialize({b: obj, c: obj})

get

(function() { var a = {}; return {"b": a, "c": a} })()
harvey-woo added a commit to harvey-woo/serialize-javascript that referenced this issue Apr 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant