-1

Does Angular have any native functions to flatten JSON data, and then nest it back up? I see code below, just curious if Angular has any embedded library functions. Otherwise I will copy and paste this function into our library.

Fastest way to flatten / un-flatten nested JSON objects

Patricio Vargas
  • 5,236
  • 11
  • 49
  • 100

1 Answers1

1

The answer is no. Angular doesn't have that, but RxJs could have something that you can find useful.

Best way to "flatten" an array inside an RxJS Observable

http://alanpryorjr.com/2019-05-15-rxjs-flattening-operators/

Patricio Vargas
  • 5,236
  • 11
  • 49
  • 100