2.2.0 • Published 7 years ago

xhelper v2.2.0

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

xhelper

Installattion

npm install xhelper --save

Backend Usage

const xhelper = require('xhelper');

Frontend Usage

<script src="./node_modules/xhelper/xhelper.min.js"></script>

Functions Documentation

Function NameDescription
containsObjectChecks if the array contains a certain object
ceilCeil the given number
floorFloor the given number
roundRound the given number
truncateTruncate the given number
escapeRegexEscape Regex input
unspaceRemove spaces from the string
toBooleanConverts the string to boolean value
isUndefinedChecks if object is undefined
isNullChecks if object is null
deg2radConverts degree angle to radiant
validateEmailValidates the given email address
leadingZeroesAdds leading zeroes to the string untill it matches the given characters length
commaSeparateNumberAdds commas to the number at thousands, millions, ...
getLastMidnightGets the last midnight timestamp according to the user date
getCurrentMonthFirstDayGets the last midnight of the first day of the month's timestamp according to the user date
ceilToMinuteRound number of seconds to the nearest greater number of minutes
getRandomElementsGet Random elements from an array (duplicates are allowed)
getUniqueElementsGet Random unique elements from an array
2.2.0

7 years ago

2.1.0

8 years ago

2.0.9

8 years ago

2.0.7

8 years ago

2.0.6

8 years ago

2.0.5

8 years ago

2.0.4

8 years ago

2.0.3

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago

1.0.0

8 years ago