Just take the value in an array.
function Spot(value) { this.x = null; this.y = null; this.values = [value];}var point = new Spot('foo')console.log(point);
Just take the value in an array.
function Spot(value) { this.x = null; this.y = null; this.values = [value];}var point = new Spot('foo')console.log(point);