generic-collections-js
This library includes generic layer for javascript collections. Currently supported generic types are depicted below:
ArrayT
- Generic version of Array type
Installing
npm install --save generic-collections-js
Testing
npm run test
Usage
const ArrayT = // Primitive type example //const numArray = 'number'numArray try numArray catch err console // Error: ERR_INVALID_VALUE_TYPE console // [ 2, 3 ]
Authors
- vigan-abd (vigan.abd@gmail.com)