util-get-getter-x
Utility to get a getter.
module.exports
⇒ Function
⏏
Utility to get a getter.
Kind: Exported member
Returns: *
- The target.
Param | Type | Description |
---|---|---|
creator | Function or object |
A creator function or a created object. |
getterName | string |
The getter name. |
[validator] | Function |
A function to validate the result. |
Example
; const creator = { return ;}; const validator = { return typeof value === 'number';}; const getter = ;