<commit_before>function some (arr, fn) {
  var result = false
  if (arr == null) return result

  var i = -1
  var len = arr.length

  while (++i < len) {
    if (fn(arr[i], i, arr)) {
      result = true
      break
    }
  }

  return result
}

module.exports = some
<commit_msg>update array/some.js<commit_after>// Tests whether some element in the array passes the test
// implemented by the provided function. specialized version
// without support for callback shorthands and `this` binding.

function some (arr, fn) {
  var i = -1
  var len = arr.length

  while (++i < len) {
    if (fn(arr[i], i, arr)) return true
  }

  return false
}

module.exports = some

{'fraction_non_alphanumeric': 0.11659192825112108, 'fraction_numerical': 0.0029895366218236174, 'mean_word_length': 2.764044943820225, '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': '3259417', 'n_tokens_mistral': 223, 'n_tokens_neox': 216, 'n_words': 82}