<commit_before>var isArray = require("is_array");


function arrayIndexOf(array, value, fromIndex) {
    var i = (fromIndex || 0) - 1,
        il = array.length - 1;

    while (i++ < il) {
        if (array[i] === value) {
            return i;
        }
    }

    return -1;
}

module.exports = function indexOf(array, value, fromIndex) {
    return isArray(array) ? arrayIndexOf(array, value, fromIndex) : -1;
};
<commit_msg>moved fromIndex default value to exported function<commit_after>var isArray = require("is_array");


function arrayIndexOf(array, value, fromIndex) {
    var i = fromIndex - 1,
        il = array.length - 1;

    while (i++ < il) {
        if (array[i] === value) {
            return i;
        }
    }

    return -1;
}

module.exports = function indexOf(array, value, fromIndex) {
    return isArray(array) ? arrayIndexOf(array, value, fromIndex || 0) : -1;
};

{'fraction_non_alphanumeric': 0.14109742441209405, 'fraction_numerical': 0.011198208286674132, 'mean_word_length': 2.5617529880478087, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5579250', 'n_tokens_mistral': 306, 'n_tokens_neox': 292, 'n_words': 78}