UNPKG

269 BPlain TextView Raw
1import { SyntaxKind } from 'ts-morph';
2
3export function hasSpreadElementInArray(arr): boolean {
4 let result = false;
5 arr.map(el => {
6 if (el.kind && el.kind === SyntaxKind.SpreadElement) {
7 result = true;
8 }
9 });
10 return result;
11}