Skip to content

Instantly share code, notes, and snippets.

@transitive-bullshit
Created January 26, 2020 22:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save transitive-bullshit/9ee12a09a1d6751b8f714cc9bdedfe6c to your computer and use it in GitHub Desktop.
Save transitive-bullshit/9ee12a09a1d6751b8f714cc9bdedfe6c to your computer and use it in GitHub Desktop.
const pick = require('lodash.pick')
const stableStringify = require('fast-json-stable-stringify')
const data = pick(myData, ['keyFoo', 'keyBar'])
const fingerprint = hash(stableStringify(data))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment