src/util/methodDataUtil.js
function getIterateeIndex(version, method) {
    const mainAlias = getMainAlias(version, method)
    const methodData = getMethodData(version)[mainAlias]
    if (_.has(methodData, 'iterateeIndex')) {
        return methodData.iterateeIndex
    }
    if (methodData && methodData.iteratee) {
        return 1
    }
    return -1
}
function getIterateeIndex(version, method) {
    const mainAlias = getMainAlias(version, method)
    const methodData = getMethodData(version)[mainAlias]
    if (_.has(methodData, 'iterateeIndex')) {
        return methodData.iterateeIndex
    }
    if (methodData && methodData.iteratee) {
        return 1
    }
    return -1
}
function getIterateeIndex ( version , method ) { const mainAlias = getMainAlias ( version , method ) const methodData = getMethodData ( version ) [ mainAlias ] if ( _ . has ( methodData , 'iterateeIndex' ) ) { return methodData . iterateeIndex } if ( methodData && methodData . iteratee ) { return 1 } return - 1 }
Gets the index of the iteratee of a method when it isn't chained, or -1 if it doesn't have one.
@param {number} version
@param {string} method
@returns {number}
Gets the index of the iteratee of a method when it isn t chained or - 1 if it doesn t have one .