Specify return type

This commit is contained in:
Richard Davey 2022-08-23 17:36:52 +01:00
parent b3b4d596a9
commit 0eb0171dfb

View file

@ -12,9 +12,9 @@
*
* @param {object} source - The object to retrieve the value from.
* @param {string} key - The key to look for in the `source` object.
* @param {*} defaultValue - The default value to return if the `key` doesn't exist or if no `source` object is provided.
* @param {boolean} defaultValue - The default value to return if the `key` doesn't exist or if no `source` object is provided.
*
* @return {*} The retrieved value.
* @return {boolean} The retrieved value.
*/
var GetBoolean = function (source, key, defaultValue)
{