UNPKG
heracles
Version:
latest (0.1.3-a2)
0.1.3-a2
0.1.3-a1
0.1.2
0.1.2-pre04
0.1.2-pre03
0.1.2-pre01
0.1.1
0.0.1
Hydra Core hypermedia-aware client library
github.com/wikibus/heracles
wikibus/heracles
heracles
/
src
/
LodashUtil.ts
17 lines
(13 loc)
•
333 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
export
function
forOwn
(
obj:
Object
, iteratee
) {
for
(
let
key
in
obj) {
if
(!obj.
hasOwnProperty
(key))
continue
;
iteratee
(obj[key], key, obj); } }
export
function
values
(
obj:
Object
):
Array
<any> {
const
values = [];
forOwn
(obj,
o
=>
{ values.
push
(o); });
return
values; }