File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 57
57
],
58
58
"license" : " BSD-3-Clause" ,
59
59
"main" : " ./dist/src/index.js" ,
60
- "files" : [" dist/src/" ],
60
+ "files" : [
61
+ " dist/src/"
62
+ ],
61
63
"name" : " table" ,
62
64
"repository" : {
63
65
"type" : " git" ,
Original file line number Diff line number Diff line change @@ -124,7 +124,13 @@ export const extractTruncates = (config: BaseConfig): number[] => {
124
124
} ;
125
125
126
126
export const flatten = < T > ( array : T [ ] [ ] ) : T [ ] => {
127
- return ( [ ] as T [ ] ) . concat ( ...array ) ;
127
+ const destination = [ ] ;
128
+ const arrayLength = array . length ;
129
+ for ( let index = 0 ; index < arrayLength ; index ++ ) {
130
+ destination . push ( ...array [ index ] ) ;
131
+ }
132
+
133
+ return destination ;
128
134
} ;
129
135
130
136
export const calculateRangeCoordinate = ( spanningCellConfig : SpanningCellConfig ) : RangeCoordinate => {
You can’t perform that action at this time.
0 commit comments