Bgouveia/Jasmine-Helpers — Issue #3: toExist
Author: JamieMason
Created: 2011-11-11 10:10:02+00:00
State: open

If a value was undefined, toExist would return true;

toExist: function () {
return this.actual !== null;
}

eg

function toExist (val) {
return val !== null;
}

var myVar;

toExist(myVar);
// >> true