src/util/methodDataUtil.js
/**
 * Returns whether the node's method call supports using shorthands in the specified version
 * @param {Number} version
 * @param {string} method
 * @returns {boolean}
 */
Returns whether the node's method call supports using shorthands in the specified version
@param {Number} version
@param {string} method
@returns {boolean}
Returns whether the node ' s method call supports using shorthands in the specified version @param { Number } version @param { string } method @returns { boolean }
function methodSupportsShorthand(version, method, shorthandType) {
    const mainAlias = getMainAlias(version, method)
    const methodShorthandData = _.get(getMethodData(version), [mainAlias, 'shorthand'])
    return _.isObject(methodShorthandData) ? Boolean(shorthandType && methodShorthandData[shorthandType]) : Boolean(methodShorthandData)
}
function methodSupportsShorthand ( version , method , shorthandType ) { const mainAlias = getMainAlias ( version , method ) const methodShorthandData = _ . get ( getMethodData ( version ) , [ mainAlias , 'shorthand' ] ) return _ . isObject ( methodShorthandData ) ? Boolean ( shorthandType && methodShorthandData [ shorthandType ] ) : Boolean ( methodShorthandData ) }
Returns whether the node's method call supports using shorthands in the specified version
 @param {Number} version
 @param {string} method
 @returns {boolean}
Returns whether the node ' s method call supports using shorthands in the specified version @param { Number } version @param { string } method @returns { boolean }