UNPKG

ember-do-forms

Version:

ember-do-forms handles the icky parts of forms that you don't want to, and leaves the rest to you.

12 lines (10 loc) 347 B
import { isArray, A } from '@ember/array'; // The classNames on a Component return [] after Ember 2.11, // but before that it returns ['ember-view']. export default function hasOnlyEmberView(classNames) { if (!isArray(classNames)) { return false; } else { return classNames.length === 1 && A(classNames).includes('ember-view'); } }