Kenneth Chan
Kenneth Chan
You can see examples of using promises in the tests here: https://github.com/revelrylabs/elixir-nodejs/blob/master/test/nodejs_test.exs#L125 from the javascript code here: ```javascript module.exports = async function echo(x, delay = 1000) { return new Promise((resolve)...
Joi is at version 10 now, can we make a pull request with your changes?
Here is the fix to diagonals: https://github.com/bgrins/javascript-astar/blob/master/astar.js#L67 Instead of: ``` javascript var gScore = currentNode.g + neighbor.cost; ``` use: ``` javascript var gScore = currentNode.g + neighbor.cost * heuristic(currentNode.pos, neighbor.pos);...