uncapitalize.js 323 B

12345678910
  1. 'use strict';
  2. module.exports = function (t, a) {
  3. a(t.call('raz'), 'raz', "Word");
  4. a(t.call('BLA'), 'bLA', "Uppercase");
  5. a(t.call(''), '', "Empty");
  6. a(t.call('a'), 'a', "One letter");
  7. a(t.call('this is a test'), 'this is a test', "Sentence");
  8. a(t.call('This is a test'), 'this is a test', "Capitalized sentence");
  9. };