<commit_before>export default function isObject(val) {
  return (
    val !== null &&
    typeof val === 'object' &&
    !(val instanceof Date || val instanceof RegExp) &&
    !Array.isArray(val) &&
    !val.toArray
  );
}<commit_msg>[Bug]: use isArray for better Ember Array detection (#557)<commit_after>import { isArray } from '@ember/array';

/**
 * Employ Ember strategies for isObject detection
 * @method isObject
 */
export default function isObject(val) {
  return val !== null && typeof val === 'object' && !(val instanceof Date || val instanceof RegExp) && !isArray(val);
}
{'fraction_non_alphanumeric': 0.1506849315068493, 'fraction_numerical': 0.005136986301369863, 'mean_word_length': 4.131578947368421, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7452439', 'n_tokens_mistral': 173, 'n_tokens_neox': 167, 'n_words': 55}