repl.it
JavaScript

No description

fork
loading
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
const obj1 = {
  a:1,
  b:2,
  c:3
}
const obj2 = {
  a:1,
  b:2,
  c:3,
  d:4,
  e:5

}
console.log(Object.keys(obj2));
console.log(Object.entries(obj2));
console.log(Object.getOwnPropertyNames(obj2));
console.log(obj2.hasOwnProperty('a'));
console.log(obj2.length)
console.log(Object.keys(obj2).length);
console.log(Object.is(1,2,))

function looper(obj1, obj2) {
  Object.keys(obj2).forEach(())
  }
  if ()
/*
function extend(obj1, obj2) {
  if (obj1 !== obj2) {
    obj2.getOwnPropertyNames()

  }

}
*/
Native Browser JavaScript