npm.io
1.1.1 • Published 5 years ago

@tavernier-app/tavernier-toolbox

Licence
ISC
Version
1.1.1
Deps
0
Size
9 kB
Vulns
0
Weekly
0

Tavernier-toolbox

badge1 badge2

A collection of useful TypeScript utilities used on Tavernier-App. Tested with Jest.

Statements Branches Functions Lines
Statements Branches Functions Lines

Changelog

  • 1.1.1

    • Configuring Github Package
  • 1.1.0

    • Adding Jest Coverage
  • 1.0.0

    • Adding Check Module & Equality Module

Functions

checkEmailFormat(email)

Returns true if the string passed as parameter has an email format.

isNull(value)

Returns true if the value sent is null.

isUndefined(value)

Returns true if the value is undefined.

isNullOrUndefined(value)

Returns true if the value is null or undefined.

isObject(value)

Returns true if the value is an non-null object.

checkEmailFormat(email) ⇒

Returns true if the string passed as parameter has an email format.

Kind: global function
Returns: boolean

Param Description
email string to be checked

isNull(value) ⇒

Returns true if the value sent is null.

Kind: global function
Returns: boolean

Param Description
value value of any type to be checked

isUndefined(value) ⇒

Returns true if the value is undefined.

Kind: global function
Returns: boolean

Param Description
value value of any type to be checked

isNullOrUndefined(value) ⇒

Returns true if the value is null or undefined.

Kind: global function
Returns: boolean

Param Description
value value of any type to be checked

isObject(value) ⇒

Returns true if the value is an non-null object.

Kind: global function
Returns: boolean

Param Description
value value of any type to be checked

Keywords