mirror of
https://github.com/mastodon/mastodon.git
synced 2026-09-27 13:08:39 -05:00
Resolve no-array-constructor JS lint warnings (#40588)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { useState, useEffect, useRef } from 'react';
|
||||
|
||||
const normalizeFrequencies = (arr: Float32Array): number[] => {
|
||||
return new Array(...arr).map((value: number) => {
|
||||
return [...arr].map((value: number) => {
|
||||
if (value === -Infinity) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user