Object.getOwnPropertyDescriptors

the behavior of value, writable, get, set, configurable and enumerable

Object.getOwnPropertyDescriptors returns all property descriptors of its first argument:

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.