All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Added
Undefined
generic type. - Added guard function
guardStringLengthBetween()
. 53e02d8 - Added check function
isStringLengthBetween()
. 5d044f9 - Added generic type
GenericObject
. fd14947 - Added
guardStringIncludes()
andguardStringIncludesSome()
functions with tests. 691f07e - Added
guardObjectKeysIn()
function to guard the value to be anobject
with specified keys in it(or its prototype chain). 21e523b - Added
are
prefixed 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
MinMax
that takes generic type variableMin
andMax
that represents the range between minimum and maximum. e503d38 - Added new guard functions
guardDate()
,guardFalse()
,guardNumberBetween()
,guardObjectKeyIn()
,guardObjectSomeKeys()
,guardRegExp()
,guardStringLength()
,guardTrue()
. c374612 - Added
isObjectKeysIn()
,isObjectSomeKeys()
,isStringIncludes()
andisStringIncludesSome()
and to theis
object and to theIs
interface. 55635fa 1e48fb1 a4cb61d f809f32 5c85a03 d440e38 0efe8ae - Added
CallbackPayload
andForEachCallback
types. 98a2722 - Added the
type
object consists ofare
,is
andguard
objects. dfb3df9 - Added an object to handle executing the tests. 8dd8099 230063b
- Added
recognizeValue()
to recognize type of any value. d2f756e
- Updated the way of checking values in some of the
is
andisNot
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
. 061ab52 - Updated
guardStringLength()
function to check the specificlength
. 0e48591 - Updated
is {}
object by addingstringLengthBetween
method. 083ffd0 - Updated
guardIs
object by addingobjectKeysIn
,stringIncludes
,stringLengthBetween
andstringIncludesSome
methods. 8679b4c 1d44d2e - Updated
GuardIs
interface by addingstringLengthBetween
. 7387e23 - Updated
areString()
function that works by using the returned methods. 68c9365 - Freeze the
guard
,guardIs
,isNot
andis
object. 00e8841 09fb70f c4e6f8f 0efe8ae - Updated
isObject()
function by adding the ability to check any kind of object, not only theObject
. de6aa12 - Updated
NumberBetween
interface by addingMinMax
interface and a generic type variableType
. 1263a2e - Updated
StringOfLength
interface by addingMinMax
interface and a generic type variableType
. 24621f7 - Updated
isInstance()
function can now check any kind of instance. 7d288c2 - Updated
Is
interface by addingstringLengthBetween
. 26d7a9d 8ddb720 - Updated
Is
interface andisNot
by changing the function types to thetypeof
operator. 8ddb720 8ddb720 - Updated the type of callback function
ResultCallback
to provide the type of value and the shape ofpayload
. 8ddb720 34a1b1f - Updated functions by adding a generic type variable
Payload
constrained by theobject
type that is by default equal to theobject
. 5c9486f - Updated functions by adding a
payload
parameter of generic typethat takes generic type variableCallbackPayload
Payload
to assign to callback functionpayload
parameter. 6d190f5 - Updated functions by removing
typeOf()
function if it's not necessary to use it. 8ddb720 - Updated the
Defined
to not use ofNever
type cause of some compile issues. e09a84f - Updated the
guard
object by removingis
property. aa80250 - Updated the
isParam()
function by removing theFunc
generic type in favor ofFunction
. 42065c9 - Updated
isObjectKey()
,isObjectKeyIn
to check only one key instead of multiple keys. b7092a9 - Updated
isObjectKeys()
works differently, now it searches for every key. The previous functionality providesisObjectSomeKeys()
. b7092a9
- Removed
guard
prefixed function types. a8e8566 - Removed
Func
type in favor of build-inFunction
type. 8ddb720 5148f05 - Removed
Key
type in favor of build-inPropertyKey
type. 562ec13 - Removed
CycleHook
type. 4d53a55