Skip to content

Instantly share code, notes, and snippets.

@diegotauchert
Created February 8, 2022 02:02
Show Gist options
  • Select an option

  • Save diegotauchert/82635d52ae697a64756650554db3fff7 to your computer and use it in GitHub Desktop.

Select an option

Save diegotauchert/82635d52ae697a64756650554db3fff7 to your computer and use it in GitHub Desktop.
Strip Property function, hackerrank Javascript code chalenge
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)
}
@poojitha944
Copy link

poojitha944 commented Mar 3, 2025

nope!
iam not getting the output in hakerrank

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment