Package Exports
- change-capitalization
- change-capitalization/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (change-capitalization) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Module Summary
The library change-capitalization is used to increase or decrease any letter of a string using an index.
How to import
Use this like in the example below:
import { toLowerCase, toUpperCase } if you are using both
import { toLowerCase } if you are using lowerCase version
import { toUpperCase } if you are using upperCase version
Explanation
toLowerCase(word)(letterIndex) => changedWord
INPUT PARAMS:
word: string
letterIndex: number
OUTPUT VALUE:
changedWord: string
Examples
console.log(toLowerCase("Hello World")(0)) // hello world
console.log(toUpperCase("Hello World")(10)) // Hello WorlD