jinxed

Collection of utility functions to help avoid being jinxed by javascript gotchas

Usage no npm install needed!

<script type="module">
  import jinxed from 'https://cdn.skypack.dev/jinxed';
</script>

README

Jinxed

Collection of utility functions to help avoid being jinxed by javascript gotchas

Install

npm install jinxed

Functions:

  • functify(obj)

Use ths function instead of JSON.stringify on an object which may have functions defined for member variables. By default, JSON.stringify will not include any properties that are functions. If you need those properties to still show up then this function is your friend. But it will not evaluate the true value of the function property, rather it will just include a place-holder string: 'function'.