mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Type definitions and tests for sentence-case
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
/// <reference path="sentence-case.d.ts" />
|
||||
|
||||
import sentenceCase = require('sentence-case');
|
||||
|
||||
console.log(sentenceCase(null)); // => ""
|
||||
console.log(sentenceCase('string')); // => "stringe"
|
||||
console.log(sentenceCase('dot.case')); // => "dot case"
|
||||
console.log(sentenceCase('camelCase')); // => "camel case"
|
||||
console.log(sentenceCase('Beyoncé Knowles')); // => "beyoncé knowles"
|
||||
|
||||
console.log(sentenceCase('A STRING', 'tr')); // => "a strıng"
|
||||
|
||||
console.log(sentenceCase('HELLO WORLD!', null, '_')); // => "hello_world"
|
||||
Reference in New Issue
Block a user