diff --git a/lib/internal/validators.js b/lib/internal/validators.js index dae0f9bc056b3b..4ed1e1115a9448 100644 --- a/lib/internal/validators.js +++ b/lib/internal/validators.js @@ -1,3 +1,5 @@ +/* eslint jsdoc/require-jsdoc: "error" */ + 'use strict'; const { @@ -217,6 +219,12 @@ function validateBoolean(value, name) { throw new ERR_INVALID_ARG_TYPE(name, 'boolean', value); } +/** + * @param {?object} options + * @param {string} key + * @param {boolean} defaultValue + * @returns {boolean} + */ function getOwnPropertyValueOrDefault(options, key, defaultValue) { return options == null || !ObjectPrototypeHasOwnProperty(options, key) ? defaultValue :