README
Perfective Common for TypeScript
The code provided by this project relies on the strict TypeScript compiler checks.
Use of these packages in the regular JS projects may produce unexpected behavior and is undocumented.
For example,
a function that declares an argument as required relies on strict TSC null
checks
and does not check value for null
additionally.
Read the full README in the repository.
Installation
npm install @perfective/common
Features
@perfective/common/array
— functions to work with theArray
class.@perfective/common/boolean
— functions to work with theBoolean
values.@perfective/common/error
— functions to work with theError
and related classes.@perfective/common/function
— functions and types for functional programming and logical operations.@perfective/common/match
— functions to support a functional switch-case.@perfective/common/maybe
— Maybe type implementation.@perfective/common/number
— functions and types to work with the real numbers.@perfective/common/object
— functions to work with theObject
class.@perfective/common/promise
— functions to work with thePromise
class.@perfective/common/string
— functions to work with theString
class.
Documentation
Developer documentation is available in the docs.html
file distributed as a part of this package.
Versioning
This package starts its versioning from 0.7.0
,
as it continues versioning after the deprecated packages:
@perfective/array
(v0.4.0
);@perfective/error
(v0.3.0
);@perfective/fp
(v0.6.0
);@perfective/identity
(v0.2.0
);@perfective/match
(v0.3.0
);@perfective/maybe
(v0.6.0
);@perfective/object
(v0.4.0
);@perfective/real
(v0.6.0
);@perfective/string
(v0.3.0
);@perfective/value
(v0.3.0
).