Posts by HiMyNameIsWeverton • 20 points
3 posts
-
-2
votes1
answer37
viewsA: Access JSON that content is an object - Javascript
When you receive JSON by the getJSON method, it comes as a javascript object. For your content to be rendered on the screen, it needs to be converted to string. To convert you can use JS native…
-
0
votes1
answer30
viewsA: Command Destroy in Javascript
I think the Destroy method is asynchronous. You have to start the method to finish. Try to change the code to: //... .finally(async () => await knex.destroy())
-
0
votes2
answers116
viewsA: How to get the only different value inside an array in Javascript?
This function returns the first unique value in the array, and returns null if none is unique. function findUniq(arr) { let uniq = {}; //Para cada elemento do array é criado um index no objeto…