vue-js-extender
v1.0.9
Published
Extend JS native objects for vue.
Downloads
8
Readme
Getting started
This package should extend JS native objects for vue.
- Install the package:
npm install --save vue-js-extender
- Add the package into your app:
import Vue from 'vue'
import JSExtender from 'vue-js-extender'
Vue.use(JSExtender)
PS: It's better to import and use it at the first after import Vue in main.js.
Usage
Instructions
Extend Details:
Object:
typeOf
isEmpty
valueEquals
copy
clone
deepFreeze
newGuid
fixToNull
toBoolean
Array:
contains
andprototype.contains
insert
andprototype.insert
remove
andprototype.remove
sortObject
andprototype.sortObject
mapMany
andprototype.mapMany
distinct
andprototype.distinct
findObjPropValue
andprototype.findObjPropValue
count
andprototype.count
sum
andprototype.sum
average
andprototype.average
Date:
format
andprototype.format
Number:
maxValue
: This is a field. value like follow:
{
int32: 2147483647
}
toFixedEx
andprototype.toFixedEx
String:
empty
: This is a fieldisNullOrEmpty
isNullOrWhiteSpace
fixToEmpty
format
andprototype.format
trim
andprototype.trim
lTrim
andprototype.lTrim
rTrim
andprototype.rTrim
replaceAll
andprototype.replaceAll
remove
andprototype.remove
removeAll
andprototype.removeAll
contains
andprototype.contains
startWith
andprototype.startWith
endWith
andprototype.endWith
truncat
andprototype.truncat
toNumber
andprototype.toNumber
emptyToZero
andprototype.emptyToZero
toPascalCase
andprototype.toPascalCase
getFileExtension
andprototype.getFileExtension
Change Log
CHANGELOG.md