import { getCardDependencies } from "./get-card-dependencies" ; import { IRow } from "./types" ; param { IRow } row export function getRowDependencies ( row ) { return row . cards . reduce ( ( deps , card ) => { const cardDeps = getCardDependencies ( card ) ; if ( cardDeps . length ) { deps = deps . concat ( cardDeps ) ; } return deps ; } , [ ] ) ; }