v5.0.0
[5.0.0] - 2022-01-30
Added
Added
Undefined
generic 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 anobject
with specified keys in it(or its prototype chain). 21e523bAdded
are
prefixed functions to check the values of a rest parameter.areBigInt()
areBoolean()
areDate()
areDefined()
areFalse()
areNull()
areNumber()
areRegExp()
areSymbol()
areTrue()
areUndefined()
. 823dac3Added a generic type
MinMax
that takes generic type variableMin
andMax
that represents the range between minimum and maximum. e503d38Added new guard functions
guardDate()
,guardFalse()
,guardNumberBetween()
,guardObjectKeyIn()
,guardObjectSomeKeys()
,guardRegExp()
,guardStringLength()
,guardTrue()
. c374612Added
CallbackPayload
andForEachCallback
types. 98a2722Added the
type
object consists ofare
,is
andguard
objects. dfb3df9Added
recognizeValue()
to recognize type of any value. d2f756e
Changed
Updated the way of checking values in some of the
is
andguard
prefixed functions.Updated
isPrimitive()
andisType()
function does not use switch on thetype
argument.Updated
guard
,is
,isNot
prefixed functions to use updated generic typeResultCallback
withpayload
parameter of generic type variablePayload
.Updated
isStringLength()
function to check the specificlength
. 061ab52Updated
guardStringLength()
function to check the specificlength
. 0e48591Updated
is {}
object by addingstringLengthBetween
method. 083ffd0Updated
GuardIs
interface 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
NumberBetween
interface by addingMinMax
interface and a generic type variableType
. 1263a2eUpdated
StringOfLength
interface by addingMinMax
interface and a generic type variableType
. 24621f7Updated
isInstance()
function can now check any kind of instance. 7d288c2Updated
Is
interface andisNot
by changing the function types to thetypeof
operator. 8ddb720Updated functions by adding a generic type variable
Payload
constrained by theobject
type that is by default equal to theobject
. 5c9486fUpdated functions by adding a
payload
parameter of generic type
that takes generic type variableCallbackPayloadPayload
to assign to callback functionpayload
parameter. 6d190f5Updated functions by removing
typeOf()
function if it's not necessary to use it. 8ddb720Updated the
Defined
to not use ofNever
type cause of some compile issues. e09a84fUpdated the
guard
object by removingis
property. aa80250Updated the
isParam()
function by removing theFunc
generic type in favor ofFunction
. 42065c9Updated
isObjectKey()
,isObjectKeyIn
to 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