v5.0.0
[5.0.0] - 2022-01-30
Added
Added
Undefinedgeneric type.Added guard function
guardStringLengthBetween(). 53e02d8Added check function
isStringLengthBetween(). 5d044f9Added generic type
GenericObject. fd14947Added
guardStringIncludes()andguardStringIncludesSome()functions with tests. 691f07eAdded
guardObjectKeysIn()function to guard the value to be anobjectwith specified keys in it(or its prototype chain). 21e523bAdded
areprefixed functions to check the values of a rest parameter.areBigInt()areBoolean()areDate()areDefined()areFalse()areNull()areNumber()areRegExp()areSymbol()areTrue()areUndefined(). 823dac3Added a generic type
MinMaxthat takes generic type variableMinandMaxthat represents the range between minimum and maximum. e503d38Added new guard functions
guardDate(),guardFalse(),guardNumberBetween(),guardObjectKeyIn(),guardObjectSomeKeys(),guardRegExp(),guardStringLength(),guardTrue(). c374612Added
CallbackPayloadandForEachCallbacktypes. 98a2722Added the
typeobject consists ofare,isandguardobjects. dfb3df9Added
recognizeValue()to recognize type of any value. d2f756e
Changed
Updated the way of checking values in some of the
isandguardprefixed functions.Updated
isPrimitive()andisType()function does not use switch on thetypeargument.Updated
guard,is,isNotprefixed functions to use updated generic typeResultCallbackwithpayloadparameter of generic type variablePayload.Updated
isStringLength()function to check the specificlength. 061ab52Updated
guardStringLength()function to check the specificlength. 0e48591Updated
is {}object by addingstringLengthBetweenmethod. 083ffd0Updated
GuardIsinterface by addingstringLengthBetween. 7387e23Updated
areString()function that works by using the returned methods. 68c9365Updated
isObject()function by adding the ability to check any kind of object, not only theObject. de6aa12Updated
NumberBetweeninterface by addingMinMaxinterface and a generic type variableType. 1263a2eUpdated
StringOfLengthinterface by addingMinMaxinterface and a generic type variableType. 24621f7Updated
isInstance()function can now check any kind of instance. 7d288c2Updated
Isinterface andisNotby changing the function types to thetypeofoperator. 8ddb720Updated functions by adding a generic type variable
Payloadconstrained by theobjecttype that is by default equal to theobject. 5c9486fUpdated functions by adding a
payloadparameter of generic typethat takes generic type variableCallbackPayloadPayloadto assign to callback functionpayloadparameter. 6d190f5Updated functions by removing
typeOf()function if it's not necessary to use it. 8ddb720Updated the
Definedto not use ofNevertype cause of some compile issues. e09a84fUpdated the
guardobject by removingisproperty. aa80250Updated the
isParam()function by removing theFuncgeneric type in favor ofFunction. 42065c9Updated
isObjectKey(),isObjectKeyInto check only one key instead of multiple keys. b7092a9Updated
isObjectKeys()works differently, now it searches for every key. The previous functionality providesisObjectSomeKeys(). b7092a9
Removed
Last updated
Was this helpful?