Sign in
bazel
/
continuous-integration
/
da613edea5beabf9fab79fb7e8577bf46a21f3e8
/
.
/
actions
/
release-helper
/
node_modules
/
@octokit
/
endpoint
/
dist-src
/
util
/
omit.js
blob: 62450310d2eaa1f797976e0a06b540a4bd04511a [
file
]
export
function
omit
(
object
,
keysToOmit
)
{
return
Object
.
keys
(
object
)
.
filter
((
option
)
=>
!
keysToOmit
.
includes
(
option
))
.
reduce
((
obj
,
key
)
=>
{
obj
[
key
]
=
object
[
key
];
return
obj
;
},
{});
}