File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ function determineStatsOptions(options?: IBaseOptions) {
203203 */
204204export function boxplotStats ( arr : readonly number [ ] | Float32Array | Float64Array , options : IBaseOptions ) : IBoxPlot {
205205 const vs =
206- window . Float64Array != null && ! ( arr instanceof Float32Array || arr instanceof Float64Array )
206+ typeof Float64Array !== 'undefined' && ! ( arr instanceof Float32Array || arr instanceof Float64Array )
207207 ? Float64Array . from ( arr )
208208 : arr ;
209209 const r = boxplots ( vs , determineStatsOptions ( options ) ) ;
@@ -244,7 +244,7 @@ export function violinStats(arr: readonly number[], options: IViolinOptions): IV
244244 return undefined ;
245245 }
246246 const vs =
247- window . Float64Array != null && ! ( arr instanceof Float32Array || arr instanceof Float64Array )
247+ typeof Float64Array !== 'undefined' && ! ( arr instanceof Float32Array || arr instanceof Float64Array )
248248 ? Float64Array . from ( arr )
249249 : arr ;
250250 const stats = boxplots ( vs , determineStatsOptions ( options ) ) ;
You can’t perform that action at this time.
0 commit comments