infopen-type-utils
Description
This module is a part of the NodeJS infOpen framework which used in infOpen company.
Here is defined some functions to manage data type.
Util functions
Global
isDefined
This function check if param sent isn't undefined
isNull
This unction check if param sent is null
For array
inArray
This function check if an element is in array and return its index
For function
isFunction
This function check if param is a function
For number
isNumber
This function check if param is a number
For string
isNotEmptyString
This function check if the param is not an empty string
isString
This function check if the param is a string
Grunt actions
Grunt is used to automate some actions with this module.
- grunt clean : delete doc and coverage directory
- grunt jsdoc : generate documentation (Java required)
- grunt jshint : validate dev rules and syntax
- grunt mocha_istanbul : execute tests, check code coverage and generate html