Skip to content

Releases: DWTechs/CheckHard.js

Add isValidInteger & isValidFloat

22 Oct 20:05

Choose a tag to compare

  • CheckHard.js becomes Checkard.js
  • Add isValidInteger() method
  • Add isValidFloat() method
  • Fix isArray() method when len param is equal to zero
  • Add more unit tests for isArray() method
  • Improve isInteger() method

Add emptyCheck parameter to isObject()

18 Feb 17:08

Choose a tag to compare

  • Add emptyCheck parameter to isObject() method. Which default to false

isStringOfLength()

14 Jan 11:52

Choose a tag to compare

  • Add isStringOfLength() method

Add emptyCheck parameter to isString()

29 Dec 20:56

Choose a tag to compare

  • Add emptyCheck parameter to isString() method. Which default to true

Add isJWT() method

18 Oct 10:49
e4fce73

Choose a tag to compare

  • Add isJWT() method
  • Improve isArray() method
  • Update build tools
  • Code cleanup for lighter library
  • Add more unit tests

typeCheck parameter to isTimestamp() and isValidTimestamp()

11 Oct 13:17
f7321ca

Choose a tag to compare

  • Add typeCheck parameter to isTimestamp() and isValidTimestamp() methods
  • Improve types using "type predicates" for ease of use with Typescript

Fix isNumber with array of length 1

08 May 14:57

Choose a tag to compare

  • Fix isNumber() & isTimestamp issue with array of length one
  • Add more tests with arrays

Fix isTimestamp

23 Oct 09:24

Choose a tag to compare

  • Fix isTimestamp() issue with string values

isArray() comparator

16 Aug 22:25

Choose a tag to compare

  • isArray() method now checks if 'array' is an array and optionally if it is of length =, <, >, <= or >= than x

containsNumber() min max

08 May 22:14

Choose a tag to compare

  • containsNumber() method now can take min and max parameters