Skip to content

Commit

Permalink
is-array
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Aug 28, 2023
1 parent a61f6f5 commit d560c7b
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions packages/ember-truth-helpers/src/helpers/is-array.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
import { helper } from '@ember/component/helper';
import { isArray } from '@ember/array';
import type EmberArray from '@ember/array';
import { isArray as isEmberArray } from '@ember/array';

export interface IsArraySignature {
Args: {
Positional: unknown[] | EmberArray<unknown>;
};
Return: boolean;
export default function isArray(...params: unknown[]) {
return params.every(isEmberArray);
}

export default helper<IsArraySignature>((params) => {
return params.every(isArray);
});

0 comments on commit d560c7b

Please sign in to comment.