Javascript: Convert returned JSON Object Properties to PascalCase

I have a JSON object. I want to transform array to produce following as PascalCase:

contacts: [{ givenName: "Matt", familyName: "Berry" }]

Contacts: [{ GivenName: "Matt", FamilyName: "Berry" }]

The following answer did not work

Does Lodash have a Pascal case function? It did not locate it in runtime.

_.mapKeys(obj, (v, k) => _.camelCase(k))

Currently using the Typescript Angular 10 library.

Convert returned JSON Object Properties to (lower first) camelCase

Source: Angular Questions