UNPKG

ds-algo-study

Version:

Just experimenting with publishing a package

10 lines (8 loc) 201 B
var distance = function ( x, y ) { var difference = x - y; var squaredEuclideanDistance = difference * difference; return squaredEuclideanDistance; }; module.exports = { distance: distance };