]> git.cworth.org Git - lmno.games/blobdiff - empathy/empathy.jsx
Avoid unnecessary use of fill(null)
[lmno.games] / empathy / empathy.jsx
index 21b766ab689c3c8c652275f16d495387e40faaaa..cd5f3423d845f731e309e5521287a58e68f93c77 100644 (file)
@@ -368,7 +368,7 @@ class ActivePrompt extends React.PureComponent {
         </p>
         <h2>{this.props.prompt.prompt}</h2>
         <form onSubmit={this.handle_submit}>
-          {Array(this.props.prompt.items).fill(null).map((whocares,i) => {
+          {[...Array(this.props.prompt.items)].map((whocares,i) => {
             return (
               <div
                 key={i}