Created
April 18, 2020 22:00
-
-
Save Qarun-Qadir-Bissoondial/e9106e3ac5a8a45c5095a4a11bbd43ce to your computer and use it in GitHub Desktop.
Capitalize Name - Version 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const capitalizeName = (obj: object): object => { | |
const newObject = Object.assign({}, obj, { name: obj['name'].toUpperCase() }); | |
return newObject; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment