v5.0.0
[5.0.0] - 2022-01-30
Added
- Added - Undefinedgeneric type.
- Added guard function - guardStringLengthBetween(). 53e02d8
- Added check function - isStringLengthBetween(). 5d044f9
- Added generic type - GenericObject. fd14947
- Added - guardStringIncludes()and- guardStringIncludesSome()functions with tests. 691f07e
- Added - guardObjectKeysIn()function to guard the value to be an- objectwith specified keys in it(or its prototype chain). 21e523b
- Added - areprefixed functions to check the values of a rest parameter.- areBigInt()- areBoolean()- areDate()- areDefined()- areFalse()- areNull()- areNumber()- areRegExp()- areSymbol()- areTrue()- areUndefined(). 823dac3
- Added a generic type - MinMaxthat takes generic type variable- Minand- Maxthat represents the range between minimum and maximum. e503d38
- Added new guard functions - guardDate(),- guardFalse(),- guardNumberBetween(),- guardObjectKeyIn(),- guardObjectSomeKeys(),- guardRegExp(),- guardStringLength(),- guardTrue(). c374612
- Added - CallbackPayloadand- ForEachCallbacktypes. 98a2722
- Added the - typeobject consists of- are,- isand- guardobjects. dfb3df9
- Added - recognizeValue()to recognize type of any value. d2f756e
Changed
- Updated the way of checking values in some of the - isand- guardprefixed functions.
- Updated - isPrimitive()and- isType()function does not use switch on the- typeargument.
- Updated - guard,- is,- isNotprefixed functions to use updated generic type- ResultCallbackwith- payloadparameter of generic type variable- Payload.
- Updated - isStringLength()function to check the specific- length. 061ab52
- Updated - guardStringLength()function to check the specific- length. 0e48591
- Updated - is {}object by adding- stringLengthBetweenmethod. 083ffd0
- Updated - GuardIsinterface by adding- stringLengthBetween. 7387e23
- Updated - areString()function that works by using the returned methods. 68c9365
- Updated - isObject()function by adding the ability to check any kind of object, not only the- Object. de6aa12
- Updated - NumberBetweeninterface by adding- MinMaxinterface and a generic type variable- Type. 1263a2e
- Updated - StringOfLengthinterface by adding- MinMaxinterface and a generic type variable- Type. 24621f7
- Updated - isInstance()function can now check any kind of instance. 7d288c2
- Updated - Isinterface and- isNotby changing the function types to the- typeofoperator. 8ddb720
- Updated functions by adding a generic type variable - Payloadconstrained by the- objecttype that is by default equal to the- object. 5c9486f
- Updated functions by adding a - payloadparameter of generic type- CallbackPayload- Payloadto assign to callback function- payloadparameter. 6d190f5
- Updated functions by removing - typeOf()function if it's not necessary to use it. 8ddb720
- Updated the - Definedto not use of- Nevertype cause of some compile issues. e09a84f
- Updated the - guardobject by removing- isproperty. aa80250
- Updated the - isParam()function by removing the- Funcgeneric type in favor of- Function. 42065c9
- Updated - isObjectKey(),- isObjectKeyInto check only one key instead of multiple keys. b7092a9
- Updated - isObjectKeys()works differently, now it searches for every key. The previous functionality provides- isObjectSomeKeys(). b7092a9
Removed
Last updated
Was this helpful?
