Package Exports
- basic-data-handling/errorIfNotArray
- basic-data-handling/errorIfNotFloat
- basic-data-handling/errorIfNotInteger
- basic-data-handling/errorIfNotNumber
- basic-data-handling/errorIfNotObject
- basic-data-handling/errorIfNotString
- basic-data-handling/isArray_notArray
- basic-data-handling/isEmpty_notEmpty
- basic-data-handling/isInteger_isFloat
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (basic-data-handling) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
This a super-simple package. Sorry, there's no index.js file, but you really don't need it. All the files in this package are clearly named for what functions they contain. Everything is in TypeScript, with transpiled JavaScript files included.
Contains only these functions:
checkTypeOf(variable, expectedType) // triggers error if variable is not expectedType
// All these return boolean:
isArray(data)
notArray(data)
isInteger(data)
notInteger(data)
isFloat(data)
isEmpty(arrayOrString)
notEmpty(arrayOrString)
I might add a few more functions in the future, or maybe not. Haven't decided.