puleos / object-hash

Generate hashes from javascript objects in node and the browser.
MIT License
1.41k stars 145 forks source link

feat: add bigint support #108

Closed moustacheful closed 3 years ago

moustacheful commented 3 years ago

Adds support for bigints. Currently an error is thrown when passing BigInts:

this[(\"_\" + type)] is not a function

This adds the corresponding method for the bigint type, which uses the bigint.toString()

Let me know if there's a need for any changes.