function flatten ( array ) { return Array . prototype . concat . apply ( [ ] , array ) ; } export function flatMap < T , U > ( array , callbackFn , thisArg ? ) { return flatten ( array . map ( callbackFn , thisArg ) ) ; }