import murmur from "murmurhash" ; const strToInt = ( str ) => { if ( str === null || typeof str === "undefined" ) { throw new Error ( "str to int field is null or undefined." ) ; } if ( typeof str === "number" ) { return str ; } if ( ! isNaN ( Number ( str ) ) ) { return parseInt ( str , 10 ) ; } return murmur . v3 ( str ) ; } ; export default strToInt ;