propertyIsEnumerable < Object < JavaScript
The propertyIsEnumerable() method of the Object checks if the given property is enumerable and is the object's own property.
const account = { amount: 100 }
const numbers = [42];
console.log(account.propertyIsEnumerable('amount'));
// true
console.log(numbers.propertyIsEnumerable(0));
// true
console.log(numbers.propertyIsEnumerable('length'));
// false