mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
Type definitions and tests for upper-case-first
This commit is contained in:
6
upper-case-first/upper-case-first-tests.ts
Normal file
6
upper-case-first/upper-case-first-tests.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
/// <reference path="upper-case-first.d.ts" />
|
||||
|
||||
import upperCaseFirst = require('upper-case-first');
|
||||
|
||||
console.log(upperCaseFirst(null)); // => ""
|
||||
console.log(upperCaseFirst('string')); // => "String"
|
||||
Reference in New Issue
Block a user