toPlainObject for stripping/"normalising?" EMCAScript objects(like Date, Class) in an object #404
lockieluke
started this conversation in
Ideas
Replies: 1 comment
-
I think the idiomatic way is to If performance is a concern, you could try implementing the equivalent behavior in JS and write benchmarks comparing the two solutions. If you find the perf difference is significant (order of magnitude), we can consider adding |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
A
toPlainObject
function like Lodash's _.toPlainObject would be good for "normalising" JavaScript types in an object.For example:
This could be useful when you want something that can be used as a plain JSON server response
Beta Was this translation helpful? Give feedback.
All reactions