Want to get all keys present in an object?
Try
Object.keys( )
Usecase:
let obj = {
year: 2019,
month: 'september'
}
const objKeys = Object.keys(obj);
console.log(objKeys);
// [ 'year', 'month' ]
For further actions, you may consider blocking this person and/or reporting abuse
Oliver Bennet -
Super Kai (Kazuya Ito) -
Khai J. Thani -
Adithya A -
Top comments (2)