Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
let validKeys = emberArray(changeKeys).filter((key /*: string */) => includes(allowed, key));
let casted = take(changes, validKeys);
isValidating(key /*: string | void */) /*: boolean */ {
let runningValidations /*: RunningValidations */ = get(this, RUNNING_VALIDATIONS);
let ks /*: Array */ = emberArray(keys(runningValidations));
if (key) return includes(ks, key);
return !isEmpty(ks);
},