We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6b9c42 commit ada7d82Copy full SHA for ada7d82
lib/internal/validators.js
@@ -1,3 +1,5 @@
1
+/* eslint jsdoc/require-jsdoc: "error" */
2
+
3
'use strict';
4
5
const {
@@ -217,6 +219,12 @@ function validateBoolean(value, name) {
217
219
throw new ERR_INVALID_ARG_TYPE(name, 'boolean', value);
218
220
}
221
222
+/**
223
+ * @param {?object} options
224
+ * @param {string} key
225
+ * @param {boolean} defaultValue
226
+ * @returns {boolean}
227
+ */
228
function getOwnPropertyValueOrDefault(options, key, defaultValue) {
229
return options == null || !ObjectPrototypeHasOwnProperty(options, key) ?
230
defaultValue :
0 commit comments