<commit_before>/**
 * Created by <NAME> on 11.10.2017.
 */


export function isMissingValue(v: any) : boolean {
  return typeof(v) === 'undefined' || v == null || (typeof v === 'number' && isNaN(v)) || v === '' || v === 'NA' || (typeof(v) === 'string' && (v.toLowerCase() === 'na') || (v instanceof Array && v.some((v) => isMissingValue(v))));
}
<commit_msg>Add check for arrays in isMissingValue() -> missing on 100% Caleydo/lineupjs#376<commit_after>/**
 * Created by <NAME> on 11.10.2017.
 */


export function isMissingValue(v: any) : boolean {
  return typeof(v) === 'undefined' || v == null || (typeof v === 'number' && isNaN(v)) || v === '' || v === 'NA' || (typeof(v) === 'string' && (v.toLowerCase() === 'na') || (v instanceof Array && v.every((v) => isMissingValue(v))));
}

{'fraction_non_alphanumeric': 0.25637755102040816, 'fraction_numerical': 0.02806122448979592, 'mean_word_length': 4.268456375838926, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '1417889', 'n_tokens_mistral': 287, 'n_tokens_neox': 270, 'n_words': 73}