Created
February 8, 2022 02:02
-
-
Save diegotauchert/82635d52ae697a64756650554db3fff7 to your computer and use it in GitHub Desktop.
Strip Property function, hackerrank Javascript code chalenge
This file contains hidden or 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
| function stripProperty(obj, prop) { | |
| const newObj = Object.keys(obj).filter(el => el !== prop) | |
| const values = newObj.map(el => [el, obj[el]]) | |
| return Object.fromEntries(values) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nope!
iam not getting the output in hakerrank