sarahciston commited on
Commit
c50aba2
·
verified ·
1 Parent(s): 96b4bd1

try foreach loop

Browse files
Files changed (1) hide show
  1. sketch.js +5 -1
sketch.js CHANGED
@@ -187,7 +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
  console.log(blanksValues)
192
 
193
  // 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(({value}) => 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()))