js-type-conversion

Simple, configurable type conversion utility for JS

Usage no npm install needed!

<script type="module">
  import jsTypeConversion from 'https://cdn.skypack.dev/js-type-conversion';
</script>

README

JS Type Conversion

This is a simple utility for customizable type conversion in JS.

The package determines the type of an entity with the following precedence:

  1. __typename key
  2. constructor name
  3. typeof