vue-extentions
v1.0.27
Published
This plugin, written by Çağdaş SANCARBARLAZ, has prepared codes that can be used in many projects for you.
Downloads
3
Maintainers
Readme
vue-extentions []
- This is the repository for Çağdaş SANCARBARLAZ
- View vue-extentions.
- Supports Vue 3, Vue 2
vue-extentions is part of the Vue Ecosystem and is an MIT licensed open source project whose continuous development is made possible entirely with the support of Sponsors. If you would like to become a sponsor, please contact us.
Installation
npm install vue-extentions
Usage
console.log("123".toPadLeft(5,'0')) /* Result ---> 00123*/
console.log("123".toPadRight(5,'0')) /* Result ---> 12300*/
console.log("cagdas".toFirstUpper()) /* Result ---> Cagdas*/
console.log("A123".isNumber()) /* Result ---> false*/
Functions
| Name | Result | Description | | ----- | ----- | ----- | |isNumber|bool|Method that returns whether the String object can be converted to Number| |toPadLeft|string|Adds the specified number of objects to the left of the incoming object.| |toPadRight|string|Adds the specified number of objects to the right of the incoming object.|| |toFirstUpper|string|Method that capitalizes the first letter of the object|