# Code coverage report for lib/defaultModifiers.js

## Statements: 87.5% (7 / 8) Branches: 100% (0 / 0) Functions: 80% (4 / 5) Lines: 87.5% (7 / 8) Ignored: none

All files » lib/ » defaultModifiers.js

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    201

    6

    2

    2

    2
    2

    1

     module.exports = {
      uppercase: function (value) {
        return String(value).toUpperCase();
      },
      lowercase: function (value) {
        return String(value).toLowerCase();
      },
      titlecase: function (value) {
        var str;

        str = String(value);
        return str.substr(0, 1).toUpperCase() + str.substr(1);
      },
      json: function (value, count, delimiter) {
        return JSON.stringify.apply(JSON, arguments);
      },
      isNaN: function (value) {
        return isNaN(value);
      }
    };