Gitiles
Code Review
Sign In
gerrit.nordix.org
/
onap
/
sdc
/
onap-ui-angular
/
b2a3acea0d0f66028c9ce5fad02d4ecc64abf70c
/
.
/
stories
/
angular
/
helpers
/
keys.pipe.ts
blob: 2a58cd8619424cae8aee56d0bee389a155ae5717 [
file
] [
log
] [
blame
]
import
{
Pipe
,
PipeTransform
}
from
'@angular/core'
;
@Pipe
({
name
:
'keys'
})
export
class
KeysPipe
implements
PipeTransform
{
transform
(
value
,
args
:
string
[])
:
any
{
let
keys
=
[];
for
(
let
key
in
value
)
{
keys
.
push
(
key
);
}
return
keys
;
}
}