Code coverage report for nodash/lib/boolean.js

Statements: 100% (5 / 5)      Branches: 100% (6 / 6)      Functions: 100% (4 / 4)      Lines: 100% (5 / 5)      Ignored: none     

All files » nodash/lib/ » boolean.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23      1     9       9       5       4        
/* vim: set et sw=2 ts=2: */
'use strict';
 
module.exports = {
 
  '&& AND': function (a, b) {
    return a && b;
  },
 
  '|| OR': function (a, b) {
    return a || b;
  },
 
  not: function (value) {
    return !value;
  },
 
  bool: function (no, yes, bool) {
    return bool ? yes : no;
  }
 
};