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
/
isMethod.mjs
6 lines
(5 loc)
•
271 B
JavaScript
View Raw
1
2
3
4
5
6
function
isMethod
(
target, property, descriptor
) {
return
Boolean
(property && descriptor &&
typeof
descriptor ===
'object'
&& !(
'initializer'
in
descriptor) && (
'value'
in
descriptor ||
'get'
in
descriptor)); }
export
{ isMethod };
//# sourceMappingURL=isMethod.mjs.map