sarahciston commited on
Commit
ab1373b
·
verified ·
1 Parent(s): 3960a3b

back to forEach instead of map function

Browse files
Files changed (1) hide show
  1. sketch.js +5 -7
sketch.js CHANGED
@@ -187,13 +187,11 @@ new p5(function (p5){
187
  PROMPT_INPUT = pField.value() // grab update to the prompt if it's been changed
188
  console.log("latest prompt: ", PROMPT_INPUT)
189
 
190
- // let blanksValues = blanksArray.map(({value}) => value)
191
- // let blanksValues = []
192
- // blanksArray.forEach(b => {
193
- // blanksValues.push(b.value())
194
- // })
195
-
196
- let blanksValues = blanksArray.map(b => b.value())
197
  console.log(blanksValues)
198
 
199
  // blanksArray.forEach(b => console.log(b.value()))
 
187
  PROMPT_INPUT = pField.value() // grab update to the prompt if it's been changed
188
  console.log("latest prompt: ", PROMPT_INPUT)
189
 
190
+ // let blanksValues = blanksArray.map(b => b.value)
191
+ let blanksValues = []
192
+ blanksArray.forEach(b => {
193
+ blanksValues.push(b.value())
194
+ })
 
 
195
  console.log(blanksValues)
196
 
197
  // blanksArray.forEach(b => console.log(b.value()))