UNPKG
@boost/decorators
Version:
latest (5.0.0)
next (5.0.0-alpha.2)
5.0.0
5.0.0-alpha.2
5.0.0-alpha.1
4.0.0
4.0.0-alpha.1
3.0.0
2.1.4
2.1.3
2.1.2
2.1.1
2.1.0
2.0.0
Experimental decorators for common patterns.
github.com/milesj/boost
milesj/boost
@boost/decorators
/
mjs
/
helpers
/
isProperty.mjs
6 lines
(5 loc)
•
254 B
JavaScript
View Raw
1
2
3
4
5
6
function
isProperty
(
target, property, descriptor
) {
return
Boolean
(property && (descriptor &&
typeof
descriptor ===
'object'
&&
'initializer'
in
descriptor || descriptor ===
undefined
)); }
export
{ isProperty };
//# sourceMappingURL=isProperty.mjs.map