import fnv1a from '@sindresorhus/fnv1a' ; param { string } key param { * } value returns { * } ignore function hashObjectReplacer ( key , value ) { const originalValue = this [ key ] ; if ( typeof FormData !== 'undefined' && originalValue instanceof FormData ) { let signature ; const fields = originalValue . entries ( ) ; let field = fields . next ( ) ; while ( ! field . done ) { const [ name , value ] = field . value ; signature += `${ name }${ value }` ; field = fields . next ( ) ; } return signature ; } return value ; } param { object } object returns { string } ignore export const hashObject = ( object ) : string => fnv1a ( JSON . stringify ( object , hashObjectReplacer ) ) . toString ( 36 ) ;