Spaces:
Running
Running
sarahciston
commited on
back to forEach instead of map function
Browse files
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(
|
191 |
-
|
192 |
-
|
193 |
-
|
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()))
|