robb
Version:
Simple type checker in JavaScript.
24 lines (19 loc) • 324 B
JavaScript
// Load ‘Robb.js’
var Robb = require('../src/robb.js');
/**
* Test ‘isEmpty’
*
* @param {object} test
*/
exports.isEmpty = function(test) {
var succ = [
{},
[],
''
];
succ.forEach(function(i) {
var res = Robb.isEmpty( i );
test.strictEqual( res, true );
});
test.done();
};