Skip to content

peterprib/pribJSExtensions

Repository files navigation

PribJSExtensions

Various extensions to base object.

defineFunction
Array
    areEqual
    diffCells
    getIterator
	returnData
        array
        endOfList
        getFirst
        getLast
        hasData
        hasNext
        key
        next
        value: null
    innerSet
    last
    outerSet
    pushArray
    sum
    summariseMetrics
    toPercentages
    toRatios
Date
    timeDuration
        second
        minute
        hour
        day
    days

Object
    addPropertyByObjectProperty
    getConstructorName
    getFunctionName	
    clone
    cloneProperties(...properties)
    forProperty
    forPropertyEnumerable
    getIterator:
        array
		thisObject
		endOfList
		getFirst
		getLast
        hasData
        hasNext
        key
        position
        next
        set
        value
    getProperty
    getValue
    hasProperties
    hasAllProperties
    inheritsProperties
    isEmpty
    mergeProperties
    mergeEnumerable
    mergeReplace
    mergeReplaceEnumerable
    propertyList
    propertyList2String
    toSimpleArray

String
    addSlashes 
    capitalize
    endsWithList
    endsWithListAnyCase
    inList
    inListAnyCase
    inListLowerCase
    maxSize
    startsWithList
    startsWithListAnyCase
    startsWithAnyCase
    trimChar
    toQuoted
    toJsonString
			,

Install

npm install pribJSExtensions

Version

0.0.1 Initial release

Author

Peter Prib

About

General extensions to base javascript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published