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

Clone and Performances ? #10

Open
jeremieca opened this issue Apr 8, 2016 · 0 comments
Open

Clone and Performances ? #10

jeremieca opened this issue Apr 8, 2016 · 0 comments

Comments

@jeremieca
Copy link

Hello,

Is paperwork clone all objects or just when there is too much fields ?

For example if I have this schema

var schema = { age: Number };

And this data

var data = { age: 20, firstname: 'Jean' }

The output will be :

{age: 20}

So, if I well understand, you have created a new "cleaned" object during validation.
But what happened if in data there is no extra fields ? Is object also cleaned ? What is the performance cost ?

Thanks.

@jeremieca jeremieca changed the title Performances ? Clone and Performances ? Apr 8, 2016
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