| 4057 | } |
| 4058 | |
| 4059 | public Object safeBoolN(Object dictionaryOrList, Object keys, Object... optionalArgs) |
| 4060 | { |
| 4061 | /** |
| 4062 | * @ignore |
| 4063 | * @method |
| 4064 | * @description safely extract boolean value from dictionary or list |
| 4065 | * @returns {bool | undefined} |
| 4066 | */ |
| 4067 | Object defaultValue = Helpers.getArg(optionalArgs, 0, null); |
| 4068 | Object value = this.safeValueN(dictionaryOrList, keys, defaultValue); |
| 4069 | if (Helpers.isTrue((value instanceof Boolean))) |
| 4070 | { |
| 4071 | return value; |
| 4072 | } |
| 4073 | return defaultValue; |
| 4074 | } |
| 4075 | |
| 4076 | public Object safeBool2(Object dictionaryOrList, Object key1, Object key2, Object... optionalArgs) |
| 4077 | { |