* Returning function. * @param {string} returnValue return value * @param {string} args arguments * @returns {string} returning function
(returnValue, args = "")
| 270 | * @returns {string} returning function |
| 271 | */ |
| 272 | returningFunction(returnValue, args = "") { |
| 273 | return this.supportsArrowFunction() |
| 274 | ? `(${args}) => (${returnValue})` |
| 275 | : `function(${args}) { return ${returnValue}; }`; |
| 276 | } |
| 277 | |
| 278 | /** |
| 279 | * Returns basic function. |
no test coverage detected