Actions
Feature #27642
closedAdd helpers for deep props keys transformations
Description
We currently have propsToSnakeCase and propsToCamelCase helpers to transform object keys, however these cannot handle nested objects. It would be useful if we had helpers that would transform keys for nested objects as well.
console.log(deepPropsToSnakeCase({ myTest: { notHere: 'foo' } })); // { my_test: { not_here: 'foo' } }
Updated by The Foreman Bot over 5 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/6978 added
Updated by Ondřej Pražák over 5 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset 7fabb3725bf694d5956fb9a2fd4af45f36975f1a.
Actions