2
0

chore(deps): update dependency eslint-plugin-jsdoc to v60 (#36466)

This commit is contained in:
diondiondion
2025-10-28 16:17:33 +01:00
committed by GitHub
parent 26ec19a649
commit e1bd9b944a
9 changed files with 177 additions and 81 deletions

View File

@@ -13,11 +13,15 @@ const FALSE_VALUES = [
];
/**
* @param {any} value
* @typedef {typeof FALSE_VALUES[number]} FalseValue
*/
/**
* @param {unknown} value
* @returns {boolean}
*/
export function isTruthy(value) {
return value && !FALSE_VALUES.includes(value);
return !!value && !FALSE_VALUES.includes(/** @type {FalseValue} */ (value));
}
/**