Gets `tryExtensions` property from a given option object.

@param {object|undefined} option - An option object to get.
@returns {string[]|null} The `tryExtensions` value, or `null`.
function get(option) {
    if (option && option.tryExtensions && Array.isArray(option.tryExtensions)) {
        return option.tryExtensions.map(String)
    }
    return null
}