A type enforcement library for javascript
npm install type-enforcer> A type enforcement library for javascript
>
> [![npm][npm]][npm-url]
[![build][build]][build-url]
[![coverage][coverage]][coverage-url]
[![deps][deps]][deps-url]
[![size][size]][size-url]
[![vulnerabilities][vulnerabilities]][vulnerabilities-url]
[![license][license]][license-url]
npm install type-enforcer
``objectAn assertion library for testing. Assertions do nothing if the test passes, and throw an AssertionError if they fail.
objectUtility functions for checking if a value is a particular data type.
objectUtility functions for enforcing data types.
objectEnforce data types and remove common boilerplate code on class methods.
Freezes an enumerable object and adds a few helper methods
A simple queue for callbacks that allows for adding, removing, and triggering all or specific callbacks
A mixin that adds methods to a class to facilitate clean-up
A thin wrapper over WeakMap for storing private variables
booleanPerforms an abstract equality check (==) between two values.
booleanPerforms a SameValue equality check (Object.is) between two values.
booleanPerforms a SameValueZero equality check between two values.
booleanPerforms a strict equality check (===) between two values.
Iterates over the provided settings and calls any methods of the same name, passing the value in as the argument.
ArrayCasts a value to an array.
[npm]: https://img.shields.io/npm/v/type-enforcer.svg
[npm-url]: https://npmjs.com/package/type-enforcer
[build]: https://travis-ci.org/DarrenPaulWright/type-enforcer.svg?branch=master
[build-url]: https://travis-ci.org/DarrenPaulWright/type-enforcer
[coverage]: https://coveralls.io/repos/github/DarrenPaulWright/type-enforcer/badge.svg?branch=master
[coverage-url]: https://coveralls.io/github/DarrenPaulWright/type-enforcer?branch=master
[deps]: https://david-dm.org/DarrenPaulWright/type-enforcer.svg
[deps-url]: https://david-dm.org/DarrenPaulWright/type-enforcer
[size]: https://packagephobia.now.sh/badge?p=type-enforcer
[size-url]: https://packagephobia.now.sh/result?p=type-enforcer
[vulnerabilities]: https://snyk.io/test/github/DarrenPaulWright/type-enforcer/badge.svg?targetFile=package.json
[vulnerabilities-url]: https://snyk.io/test/github/DarrenPaulWright/type-enforcer?targetFile=package.json
[license]: https://img.shields.io/github/license/DarrenPaulWright/type-enforcer.svg
[license-url]: https://npmjs.com/package/type-enforcer/LICENSE.md