jinxed
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

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'.

Package Sidebar

Install

npm i jinxed

Weekly Downloads

1

Version

0.0.3

License

ISC

Unpacked Size

3.3 kB

Total Files

5

Last publish

Collaborators

  • plastikfan