UNPKG
@github/catalyst
Version:
latest (1.7.0)
next (2.0.0-beta)
2.0.0-beta
2.0.0-alpha2
2.0.0-alpha1
1.7.0
1.6.0
1.5.0
1.4.2
1.4.1
1.4.0
1.3.2
1.3.1
1.3.0
1.2.1
1.2.0
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.2
1.0.1
Helpers for creating HTML Elements as Controllers
github.github.io/catalyst
github/catalyst
@github/catalyst
/
lib
/
get-property-descriptor.js
9 lines
•
323 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
export
const
getPropertyDescriptor
= (
instance, key
) => {
while
(instance) {
const
descriptor =
Object
.
getOwnPropertyDescriptor
(instance, key);
if
(descriptor)
return
descriptor; instance =
Object
.
getPrototypeOf
(instance); } };
//# sourceMappingURL=get-property-descriptor.js.map