1const object1 = {
2 a: 'somestring',
3 b: 42,
4 c: false
5};
6
7console.log(Object.values(object1));
8// expected output: Array ["somestring", 42, false]
1const object1 = {
2 a: 'somestring',
3 b: 42,
4 c: false
5};
6
7console.log(Object.values(object1));
8
9// expected output: Array ["somestring", 42, false]
1const object1 = {
2 a:"somestring",
3 b: 42,
4 c: false,
5 d: function test()
6};
7
8console.log(Object.values(object1));
9// expected output: Array ["somestring", 42, false, function test()]
10const object2 = "test";
11console.log(Object.values(object2));
12// expected output: Array ["t","e","s","t"]