1.2.3 • Published 5 years ago

g-jslib v1.2.3

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

g-jslib

Download g-jslib on npm

The lightweight pure JavaScript library.

Installation

$ npm install g-jslib

Modules

  • LocalStorageMethods
    • store(key, value)
    • retrieve(key, defaultReturn)
    • remove(key)
    • removeAll()
  • OwnObjectArray
    • toJSONString(objectArray)
    • toObjectArray(sJSON)
    • findIndex(objectArray, sPropertyName, sPropertyValue)
    • sortByAlphabet(objectArray, sPropertyName, order)
    • sortByNumeric(objectArray, sPropertyName, order)
    • filterByProperty(objectArray,sPropertyName,sSeekingValue)
    • getMax(objectArray,sPropertyName)
  • Utils
    • convertStringToInterger(sNumber, fractionDigits)
    • getRandomNumber(minNr, maxNr)
  • String.prototype
    • .toText()
    • .limitWords(limitNumber)
  • Array.prototype (Using only for object array)
    • .toJSONString()
    • .findIndexByProperty(sPropertyName, sPropertyValue)
    • .sortByAlphabet(sPropertyName, orderKeyword)
    • .sortByNumeric(sPropertyName, orderKeyword)
    • .filterByProperty(sPropertyName, sSeekingValue)
    • .getMax(sPropertyName)

Online demo

Using

Import the modules you need and String.prototype and Array.prototype are included automatic (recommendation):

import { LocalStorageMethods, OwnObjectArray } from 'g-jslib';

For only using String.prototype or Array.prototype (for object array):

import 'g-jslib';

Detail

You may want to view how to use this library on GitHub

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago