Project

General

Profile

Feature #27642

Add helpers for deep props keys transformations

Added by Ondřej Pražák 8 months ago. Updated 8 months ago.

Status:
Closed
Priority:
Normal
Category:
JavaScript stack
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:

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' } } 

Associated revisions

Revision 7fabb372 (diff)
Added by Ondřej Pražák 8 months ago

Fixes #27642 - Add helpers for deep keys transforms

History

#1 Updated by The Foreman Bot 8 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/6978 added

#2 Updated by The Foreman Bot 8 months ago

  • Fixed in Releases 1.24.0 added

#3 Updated by Ondřej Pražák 8 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF