Posts by Japôncio 3k • 26 points
3 posts
-
0
votes2
answers146
viewsA: Scroll through an array of dates to pick up the amount of monthly records from the last 12 months
var arr = ["2018-02-19", "2018-02-19", "2018-02-19", "2018-02-19", "2018-02-19", "2018-02-19", "2018-02-19", "2018-02-19", "2018-03-23", "2018-03-23", "2019-06-12", "2019-06-12", "2019-06-15",…
-
0
votes1
answer71
viewsA: Copy CANVAS with background image to an image
The background does not count as given when using toDataURL(), so you need to add the image to the canvas via Drawimage. var Img=new Image(); Img.src='<link da sua imagem>';…
-
1
votes1
answer28
viewsA: Compare 2 arrays with some() or Every()
I don’t quite understand, but I believe that’s what you want, goodUsers=[{id:1},{id:2},{id:3}]; const checkUsersValid= (submittedUsers) =>{ return goodUsers .some(value1=> submittedUsers…