Skip to content

Commit

Permalink
Don’t use isArray on ember data objects
Browse files Browse the repository at this point in the history
  • Loading branch information
fsmanuel committed Oct 25, 2023
1 parent e1a363d commit 6736582
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions addon/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import ObjectProxy from '@ember/object/proxy';
import { isHTMLSafe } from '@ember/template';
import EmberObject from '@ember/object';
import { typeOf } from '@ember/utils';
import { A as emberArray, isArray } from '@ember/array';
import { A as emberArray } from '@ember/array';
import require from 'require';

function requireModule(module, exportName = 'default') {
Expand Down Expand Up @@ -51,7 +51,6 @@ export function isDSManyArray(o) {
return !!(
DS &&
o &&
isArray(o) &&
(o instanceof DS.PromiseManyArray || o instanceof DS.ManyArray)
);
}
Expand Down

0 comments on commit 6736582

Please sign in to comment.