(object, property, defaultValue)
| 8 | * @returns {T[Property]} The defaulted property value. |
| 9 | */ |
| 10 | const d = (object, property, defaultValue) => { |
| 11 | if (typeof object[property] === 'undefined' && typeof defaultValue !== 'undefined') { |
| 12 | object[property] = defaultValue; |
| 13 | } |
| 14 | return object[property]; |
| 15 | }; |
| 16 | |
| 17 | /** |
| 18 | * Resolves the value for a nested object option. |
no outgoing calls
no test coverage detected